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]: Shopify theme dev => request to https://domain.myshopify.com/admin/api/unstable/themes/123456789.json?fields=id%2Cprocessing failed, reason: read ECONNRESET #3117

Closed
2 tasks done
kuww opened this issue Nov 17, 2023 · 11 comments
Assignees
Labels
no-issue-activity Type: Bug Something isn't working

Comments

@kuww
Copy link

kuww commented Nov 17, 2023

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Normal operation

Actual behavior

FetchError: request to https://domain.myshopify.com/admin/api/unstable/themes/123456789.json?fields=id%2Cprocessing failed, reason:
read ECONNRESET
Code: ECONNRESET

Verbose output

shopify theme dev --verbose
2023-11-17T09:17:40.441Z: Running command theme dev
  shopify:theme:dev init version: @oclif/[email protected] argv: [ '--verbose' ] +0ms
2023-11-17T09:17:40.455Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2023-11-17T09:17:40.455Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store domain.myshopify.com:
[]

2023-11-17T09:17:40.456Z: Getting session store...
2023-11-17T09:17:40.458Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "domain.myshopify.com"
  }
}

2023-11-17T09:17:40.458Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-11-17T09:17:40.458Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:41.190Z: Request to https://accounts.shopify.com/oauth/introspection completed in 722 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"b0cc816958445fad2b53af1d26b3d126"
 - x-request-id: 0945d278-0407-4f61-9c2e-7a5f2019846c
    
2023-11-17T09:17:41.194Z: The identity token is valid: true
2023-11-17T09:17:41.194Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2023-11-17T09:17:41.195Z: The current session is valid but needs refresh. Refreshing...
2023-11-17T09:17:41.195Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI3dzcqgYQ_ZTdqgZSJggBEhCBvezBsppEGYgjSDql3c1dGhC1OOzlDZBJPYfdK7vHvhSoEkCDdBqklDmtDXs2d5AU713F6kLXJoZIOSjBlFqifDlHiw6CldnKrTKWUfzMA-nIORLmCiFOE0OHrbo86jeJUUkM&refresh_token=atkn_CiEI3dzcqgYQ3fb6qwaiARIKELU47OUNkEk9h90ru8e-FKgSQIw90aS16j8nJSyPXZRcFP10KhLWYPLQn90kfou9kHcrxgRrwTnm7Y9qByiTH_SpJCABJaX92-OriAKXRA4UrAg&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:41.932Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI3dzcqgYQ_ZTdqgZSJggBEhCBvezBsppEGYgjSDql3c1dGhC1OOzlDZBJPYfdK7vHvhSoEkCDdBqklDmtDXs2d5AU713F6kLXJoZIOSjBlFqifDlHiw6CldnKrTKWUfzMA-nIORLmCiFOE0OHrbo86jeJUUkM&refresh_token=atkn_CiEI3dzcqgYQ3fb6qwaiARIKELU47OUNkEk9h90ru8e-FKgSQIw90aS16j8nJSyPXZRcFP10KhLWYPLQn90kfou9kHcrxgRrwTnm7Y9qByiTH_SpJCABJaX92-OriAKXRA4UrAg&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 734 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"d29924ae5faaa8034efcead4ffd1cdeb"
 - x-request-id: 59dd848c-efc6-4fbf-96ce-9394827d1e1a
    
2023-11-17T09:17:41.936Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:41.936Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:41.936Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json


With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:42.635Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=**** completed in 696 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"0eeb5ec34ed4c7a99248e433bf3e916c"
 - x-request-id: be7806ec-5e0c-43dc-8826-2b5085dbfe02
    
2023-11-17T09:17:42.651Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=**** completed in 710 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"41f1df62cd0b6d45abfaf64cfbaf48c4"
 - x-request-id: 3229d5fa-8298-41b5-978a-f8429cce6f36
    
2023-11-17T09:17:42.674Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%domain.myshopify.com%2Fadmin completed in 733 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"f151c3a0f8c1d0ff4c1c9956094af430"
 - x-request-id: 22454e1e-5b2c-48c2-9395-e7df2b1ecb5e
    
2023-11-17T09:17:42.696Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 756 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"5600ddde4c6f6f78dfdfed08c0490ef9"
 - x-request-id: 16a1ab93-156a-4411-a3e5-4a97dadfb170
    
2023-11-17T09:17:42.698Z: Setting session store...
2023-11-17T09:17:42.705Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2023-11-17T09:17:42.705Z: Getting session store...
2023-11-17T09:17:42.707Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "storefrontRendererApi": {
    "scopes": []
  }
}

2023-11-17T09:17:42.707Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-11-17T09:17:42.707Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.51.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2023-11-17T09:17:44.424Z: Request to https://accounts.shopify.com/oauth/introspection completed in 1714 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"43e833b33b47922e647611e7165e147f"
 - x-request-id: 5155b2dc-7575-45fa-ac42-15fa4ecc81fb
    
2023-11-17T09:17:44.426Z: The identity token is valid: true
2023-11-17T09:17:44.426Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2023-11-17T09:17:44.435Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/luzz/Desktop/shopify/a

2023-11-17T09:17:44.448Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/luzz/Desktop/shopify/a

2023-11-17T09:17:44.547Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.51.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2023-11-17T09:17:44.548Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.51.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2023-11-17T09:17:44.747Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.51.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCLbf3KoGENaX3aoGYpADCAESEOK9xkMb80yRjoQ4-DTPXMYaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQUn7-8j8YT0Sp4-5Fq2u43DokNTA4M2UyOTItNDBmMS00OTVlLTg5YzktODg2NzhiYTVjNzI2QgdBY2NvdW50ShC-cmopVllNTaUnCBEfvUsNUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQIoUqn_AqSw2OcgIQKy5N4GoQFlFj9xrwR76yFzqUbX24gRJAqUlHYjDhvdNlsWcQTDSfANKa8zPTvtUBhyUk3H27ZG0kZsitgQ715INMLnvqshKtrcMpKrRy_OtzX0Ipi6AnAQ --sfr atkn_CqMCCLbf3KoGENaX3aoGYpQCCAESEBJfEIt010cHvl97YIdgRwAaPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiQ1MDgzZTI5Mi00MGYxLTQ5NWUtODljOS04ODY3OGJhNWM3MjZCB0FjY291bnRKEL5yailWWU1NpScIER-9Sw1SU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhAihSqf8CpLDY5yAhArLk3gahAWUWP3GvBHvrIXOpRtfbiBEkCPJ1Su7mHEYIYsAQvYVlhIji0U25kM1VubsGcy3QSzqFVYKRLuZYKDFBOR3EU7dPr6RBRuCrZazliSAD0wU3UH
  · Working directory: /Users/luzz/Desktop/shopify/a

2023-11-17T09:17:45.049Z: Getting development theme...
2023-11-17T09:17:45.238Z: Request to https://domain.myshopify.com/admin/api/unstable/themes/132932763830.json?fields=id%2Cprocessing completed in 187 ms
With response headers:

    
╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  request to https://domain.myshopify.com/admin/api/unstable/them  │
│  es/132932763830.json?fields=id%2Cprocessing failed, reason: read            │
│  ECONNRESET                                                                  │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2023-11-17T09:17:45.266Z: Unable to log analytics event - no information on executed command
2023-11-17T09:17:45.269Z: Reporting handled error to Bugsnag: request to https://domain.myshopify.com/admin/api/unstable/themes/132932763830.json?fields=id%2Cprocessing failed, reason: read ECONNRESET
    FetchError: request to https://domain.myshopify.com/admin/api/u
    nstable/themes/132932763830.json?fields=id%2Cprocessing failed, reason: 
    read ECONNRESET
    Code: ECONNRESET

Reproduction steps

1.shopify run dev
2.
3.

Operating System

mac

Shopify CLI version (check your project's package.json if you're not sure)

3.51.0

Shell

bash

Node version (run node -v if you're not sure)

v21.2.0

What language and version are you using in your application?

No response

@kuww kuww added the Type: Bug Something isn't working label Nov 17, 2023
@alvaro-shopify
Copy link
Contributor

hey @kuww 👋 !, Thanks for rising up this issue. Please, could you try to run the command using the --store flag?

shopify theme dev --store <PUT_YOUR_STORE_DOMAIN>

Please, let me know if this works for you.

@kuww
Copy link
Author

kuww commented Nov 21, 2023

hi
shopify theme dev --store xxxx
╭─ error ───────────────────────────────────────────────────────────────────────────────────╮
│ │
│ request to https://xxxx.myshopify.com/admin/api/unstable/themes/1332258080
│ 54.json?fields=id%2Cprocessing failed, reason: read ECONNRESET │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

FetchError: request to https://xxxx.myshopify.com/admin/api/unstable/themes/133225808054.json?fields=id%2Cprocessing 
failed, reason: read ECONNRESET
Code: ECONNRESET

@alvaro-shopify
Copy link
Contributor

hey @kuww , are you able to open the url from the browser?, it seems that there's some kind of issue in your internet infrastructure that it's making the connections to be closed immediately by the server.

@kuww
Copy link
Author

kuww commented Nov 21, 2023

hi @alvaro-shopify I can open the link through a browser or curl through a terminal, but the link cannot fail

curl https://xxxx.myshopify.com/admin/api/unstable/themes/133225808054.json
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}%

@isaacroldan
Copy link
Contributor

Hi @kuww, are you behind a firewall or VPN? we've seem some issues with that previously.

@Ramdanemerakeb2
Copy link

HI @kuww, I had a similar issue, I advise you to go through the creation of Shopify CLI environment, it solves my problem
https://shopify.dev/docs/themes/tools/cli/environments

@MyBaymax
Copy link

MyBaymax commented Jan 6, 2024

I also encountered the same problem. As a user in China, I need to develop in a VPN environment. I was able to access it normally before, but I have been unable to access it since January 5th.
我也遇到相同的问题,我是中国地区用户,因此需要在VPN的环境开发。之前可以正常访问,但从1月5号开始就无法访问了。
#3225

@tedjsmeng
Copy link

Similarly here, I am a China-based developer who needs to use a proxy to access Shopify, after Jan 5th, this problem happens.

❌ Cannot shopify theme dev --store {{mystoreURL}} in PowerShell with VPN
✔ Can visit shopify.com in a web browser with a VPN

@Benury
Copy link

Benury commented Jan 17, 2024

Similarly here, I am a China-based developer who needs to use a proxy to access Shopify, after Jan 5th, this problem happens.

❌ Cannot shopify theme dev --store {{mystoreURL}} in PowerShell with VPN ✔ Can visit shopify.com in a web browser with a VPN

Hi @tedjsmeng Im also based in China, any solutions for this, seems VPN not friendly for Shopify development, I always met various problem.

@tedjsmeng
Copy link

Similarly here, I am a China-based developer who needs to use a proxy to access Shopify, after Jan 5th, this problem happens.
❌ Cannot shopify theme dev --store {{mystoreURL}} in PowerShell with VPN ✔ Can visit shopify.com in a web browser with a VPN

Hi @tedjsmeng Im also based in China, any solutions for this, seems VPN not friendly for Shopify development, I always met various problem.

I solved this issue by following the guide provided in this #3225 (comment)

adding proxy to the cli

Copy link
Contributor

github-actions bot commented Mar 2, 2024

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants