Skip to content
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

[Bug]: ShopifyCLI::API::APIRequestTimeoutError: Timeout #4914

Open
SebiLarion opened this issue Nov 25, 2024 · 10 comments
Open

[Bug]: ShopifyCLI::API::APIRequestTimeoutError: Timeout #4914

SebiLarion opened this issue Nov 25, 2024 · 10 comments
Labels
Area: @shopify/cli @shopify/cli package issues Area: @shopify/theme @shopify/theme package issues State: Waiting for feedback Type: Bug Something isn't working

Comments

@SebiLarion
Copy link

Shopify theme dev is not working
I receive connection timeout error

@eibrahimov
Copy link

eibrahimov commented Nov 25, 2024

Same issue. When I run npm run dev

  • macOS Version: 15.1 (Build 24B83)
  • Kernel: Darwin Kernel Version 24.1.0
  • Node.js Version: v20.16.0
  • npm Version: 10.8.1
  • Shopify CLI Version: 3.68.1

Image

@aswamy
Copy link
Contributor

aswamy commented Nov 25, 2024

I need more info on the initial ticket to investigate further.

@eibrahimov I tried running the equivalent version of Shopify CLI and didn't have the issue. I wonder if there is some corruption with the session. Could you purge your ~/Library/Preferences/shopify-cli-kit-nodejs/config.json and try again? This would kill any existing session in your CLI.

@aswamy aswamy added Area: @shopify/cli @shopify/cli package issues State: Waiting for feedback Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working labels Nov 25, 2024
@noiseymur
Copy link

noiseymur commented Nov 26, 2024

I have the same issue since yesterday and I suspect it's somehow related to my location (Azerbaijan), since using a VPN solves the issue

Image

@eibrahimov
Copy link

I need more info on the initial ticket to investigate further.

@eibrahimov I tried running the equivalent version of Shopify CLI and didn't have the issue. I wonder if there is some corruption with the session. Could you purge your ~/Library/Preferences/shopify-cli-kit-nodejs/config.json and try again? This would kill any existing session in your CLI.

I deleted ~/Library/Preferences/shopify-cli-kit-nodejs/config.json and updated the CLI version to 3.70.0. I logged out of Shopify authentication and then ran the command shopify app dev. Same issue.

The interesting part is I am also located in Azerbaijan. What is going on? 👨‍🦲

@noiseymur
Copy link

@eibrahimov can you please confirm that issue stops for you too by using a VPN? To make sure it's geography related.

@eibrahimov
Copy link

eibrahimov commented Nov 26, 2024

@eibrahimov can you please confirm that issue stops for you too by using a VPN? To make sure it's geography related.

It worked within the VPN. I am wondering if the Shopify CLI authentication service uses Cloudflare. I noticed that in https://www.cloudflarestatus.com/, some regions are "Partially Re-routed," one of which is Azerbaijan. @SebiLarion what is your country? Can you please check the status on cloudflarestatus.com?

Image

@SebiLarion
Copy link
Author

I'm from Romania, as far I can see for me status on cloudflarestatus.com is operational now.
But I think this( CLI authentication service uses Cloudflare ) could be an explanation as for me the problem was until this morning and today is working correctly.

@noiseymur
Copy link

I am wondering if the Shopify CLI authentication service uses Cloudflare.

I believe yes, because after turning on the VPN, I got standard Cloudflare verification page for humans. This really can be the reason behind the problem. Let's wait and see if it goes away after Cloudflare status becomes operational again 👍

@noiseymur
Copy link

@eibrahimov problem seems to be solved for me now, although the status is still "Partially Re-routed" in Cloudflare.

@eibrahimov
Copy link

eibrahimov commented Nov 27, 2024

Yes, the problem is resolved now. However, the Cloudflare status has also changed @noiseymur

Image

@aswamy I think this issue can be closed for now. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/cli @shopify/cli package issues Area: @shopify/theme @shopify/theme package issues State: Waiting for feedback Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants