connect ECONNREFUSED 127.0.0.1:443
Hello All. I am integrating Vue Storefront with existing Magento 2 BE (Not docker installation). Everything is up but am getting error for graphql query [reason: connect ECONNREFUSED 127.0.0.1:443] and localhost server error [api/magento/customQuery 500 (Internal Server Error]. Installed localhost cert using mkcert.
What am missing? Is it any configuration issue?
4 Replies
Hi @binu_25 👋 ,
Is the SSL working when you directly visit the shop?
@binu_25 adding to the above question, what are you using Magento SDK or VSF2 implementation (Nuxt2 app)?
It seems that it's SSL-noSSL issue, let us know and we will try to help from there
@skirianov Thanks for looking into this. I followed the VSF2 with Magento installation (Manual approach connecting to my existing Magento 2.4.6) [https://docs.vuestorefront.io/magento/installation-setup/installation.html#manual-installation]. Installation was success, (also installed self signed cert using mkcert). when I go to the local site am facing below 2 issues.
1. [[VSF][error]: [Network error]: FetchError: request to https://dev.magento.local/graphql?query=query+getStoresAndCurrencies%7BavailableStores%7Bstore_code+__typename%7Dcurrency%7Bavailable_currency_codes+__typename%7D%7D&operationName=getStoresAndCurrencies&variables=%7B%7D failed, reason: unable to verify the first certificate].
2. http://localhost:3005/api/magento/customQuery
http://localhost:3005/api/magento/categoryList
Above 2 queries are failing with 500 Internal server error.
Installation | Vue Storefront 2 for Magento
Documentation for the Magento connector for Vue Storefront 2
@.rohrig Thanks. For your question, Yes it's working when I directly visit.