-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR [VSF][error]: [Network error]: FetchError: request to https://magento2.localhost/graphql failed, reason: Socket timeout #6904
Comments
Yes. It also happens on the category and product pages. my apps are not running in containers. |
Hey, I'm tagging @bartoszherba as our Magento specialist here ;) |
We are also facing the same issue, same 8 seconds, and the socket timeout. Any updates on this one? |
We can also reproduce this, any ideas? Somehow to change the timeout value perhaps? @bartoszherba |
Hi @bartoszherba, We can replicate this by using the See the code below, we added
Running out of ideas. I also tried to add |
I'll take a look into this. I'm gonna reproduce it into my setup and investigate it. |
Thanks so much @tidypol !! |
I am testing this using a fresh vsf installation and a clean magento We should call await context.app.$vsf.$magento.api.getAvailablePaymentMethods(cartId, customQuery, customHeaders) instead of await context.app.$vsf.$magento.api.getAvailablePaymentMethods({cartId}, customQuery, customHeaders) I'll open an issue/pr soon for this since here's not the right context. This is slowing me a bit on reproducing the case, i found a way to override this. I'll get back to you guys asap. |
Thank you for looking into this @tidypol. My Magento version is currently running on 2.4.5-p1 and the docker environment is composed of Nginx, Php-Fpm, MySQL, ElasticSearch, Redis, etc. VSF was installed using |
@tidypol worth mentioning that this is happening with custom queries as well. In here https://github.com/headlesscommerce/vsf-magento-stripe/blob/main/stripe/composables/order.ts I am mutating in such way that it will return It works well if I just use a blank vue app with apollo but not with vsf. |
I've been facing this as well. Most of the time a custom query works, but sometimes, it times out at ~8s. |
@drpayyne can you describe the steps you made? Also, feel free to paste here some scripts or screenshots too. Thank you! |
We are facing this issue as well for a custom graphql calculation mutation - the execution on Magento takes about 10 seconds, but from within storefront we run into the |
Hello, |
@skirianov as this creates a critical issue (customers unable to checkout), is there any way to escalate this on your side to get more resource on it? Thanks! |
What is your question / Please describe your issue
Hi,
Has anyone experienced and solved the socket timeout error that happened at the VSF checkout page?
I can't seem to find any relevant articles discussing this issue with Magento 2 and any kind suggestion would be greatly appreciated.
The VSF is calling the localhost Magento 2 as a backend and everything runs smoothly except at this checkout page.
In the backend Magento2, we can see the order was placed successfully.
Note: both applications are containerized.
What version of Vue Storefront are you using?
latest release
Code of Conduct
The text was updated successfully, but these errors were encountered: