Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
440 stars 130 forks source link

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

Closed SebiLarion closed 2 days ago

SebiLarion commented 4 days ago

Shopify theme dev is not working I receive connection timeout error

eibrahimov commented 4 days ago

Same issue. When I run npm run dev

Image

aswamy commented 4 days ago

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.

noiseymur commented 3 days ago

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 commented 3 days ago

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 commented 3 days ago

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

eibrahimov commented 3 days ago

@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 commented 3 days ago

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 commented 3 days ago

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 commented 3 days ago

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

eibrahimov commented 2 days ago

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