Skip to content

[Bug]: Execute Shopify theme dev with error message: request to xxx.theme.json?xxx processing failed, reason: read ETIMEDOUT  #3225

Closed
@MyBaymax

Description

@MyBaymax

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

Start development services

Actual behavior

request to https://amirobeauty-com.myshopify.com/admin/api/unstable/themes
│ .json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: read ETIMEDOUT

Verbose output

2024-01-05T05:38:22.631Z: Running command theme dev
  shopify:theme:dev init version: @oclif/[email protected] argv: [ '-t=162423603516', '-s=amirobeauty-com', '--verbose' ] +0ms
2024-01-05T05:38:22.653Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-01-05T05:38:22.654Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store amirobeauty-com.myshopify.com:
[]

2024-01-05T05:38:22.654Z: Getting session store...
2024-01-05T05:38:22.658Z: 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": "amirobeauty-com.myshopify.com"
  }
}

2024-01-05T05:38:22.659Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-01-05T05:38:22.659Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.51.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:23.347Z: Request to https://accounts.shopify.com/oauth/introspection completed in 674 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/"1858cd7de013df56d8f94ed0f5bfefcc"
 - x-request-id: b87ed319-ea71-4e0c-92cc-0014e2c92be1
    
2024-01-05T05:38:23.359Z: The identity token is valid: true
2024-01-05T05:38:23.359Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-01-05T05:38:23.360Z: The current session is valid but needs refresh. Refreshing...
2024-01-05T05:38:23.364Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIoqverAYQwuPerAZSJggBEhCYyQfZG_FItoPH5HuDCJ8uGhDiMj-HiV1EsqpxTEMrCa8QEkDhw3xvxAMSewT92n5Cs1tTJfeGSkbr7EKZWb9_rk_Dbm25Afg5T8Sn3Cyhq8mPHq4XlH4AELwGJiX_LJ-FybwB&refresh_token=atkn_CiEIoqverAYQosX8rQaiARIKEOIyP4eJXUSyqnFMQysJrxASQGpA8QjIt_Eb1oH-IrlAeS_2dK7_oHw56fEQwjdaiZT-XH2dY53UukzAQTaAmdVcH7sqpAwu0DFmkswjENVEAgI&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.51.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:24.051Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIoqverAYQwuPerAZSJggBEhCYyQfZG_FItoPH5HuDCJ8uGhDiMj-HiV1EsqpxTEMrCa8QEkDhw3xvxAMSewT92n5Cs1tTJfeGSkbr7EKZWb9_rk_Dbm25Afg5T8Sn3Cyhq8mPHq4XlH4AELwGJiX_LJ-FybwB&refresh_token=atkn_CiEIoqverAYQosX8rQaiARIKEOIyP4eJXUSyqnFMQysJrxASQGpA8QjIt_Eb1oH-IrlAeS_2dK7_oHw56fEQwjdaiZT-XH2dY53UukzAQTaAmdVcH7sqpAwu0DFmkswjENVEAgI&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 682 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/"7aea3781ee472647f2dd168c9546b2d5"
 - x-request-id: ff1e2970-b8df-4b8f-8f6b-e1fcb5c361c4
    
2024-01-05T05:38:24.059Z: 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.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:24.059Z: 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.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:24.059Z: 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.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:24.059Z: 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=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%2Famirobeauty-com.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.51.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:24.715Z: 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 646 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/"0aafaab49c7da130c0eb9b2c2b4531bb"
 - x-request-id: 0c4d9712-b5cc-48b1-a756-4cdfb2ec977a
    
2024-01-05T05:38:24.727Z: 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 661 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/"ef12c0211829f8adabc1f8140f9696f6"
 - x-request-id: f0ef61a5-c596-460b-9fef-4e0487168404
    
2024-01-05T05:38:24.733Z: 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%2Famirobeauty-com.myshopify.com%2Fadmin completed in 657 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/"43ebc473530be7e146a89f7ed544ec75"
 - x-request-id: d9e5070d-9c69-428f-bfd6-5cb3631afff7
    
2024-01-05T05:38:24.743Z: 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 672 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/"ad972dff4f4847856b336befe6d77749"
 - x-request-id: 78d4eea6-e423-4f26-87fa-3b3a77dfcbd4
    
2024-01-05T05:38:24.746Z: Setting session store...
2024-01-05T05:38:24.754Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-01-05T05:38:24.755Z: Getting session store...
2024-01-05T05:38:24.758Z: 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": []
  }
}

2024-01-05T05:38:24.758Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-01-05T05:38:24.758Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.51.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-05T05:38:25.385Z: Request to https://accounts.shopify.com/oauth/introspection completed in 624 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/"4c322ab9b3ca704742af61217c25bba1"
 - x-request-id: 5e2fe173-6ac8-46f9-9f02-1fdf0df387c4
    
2024-01-05T05:38:25.389Z: The identity token is valid: true
2024-01-05T05:38:25.389Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-01-05T05:38:25.406Z: 
Running system process:
  · Command: /usr/local/opt/ruby/bin/ruby -v
  · Working directory: /Users/baymax/Desktop/vscode/amiro

2024-01-05T05:38:25.457Z: 
Running system process:
  · Command: /usr/local/opt/ruby/bin/bundle -v
  · Working directory: /Users/baymax/Desktop/vscode/amiro

2024-01-05T05:38:25.601Z: Reading the content of file at /usr/local/Cellar/shopify-cli/3.51.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-01-05T05:38:25.603Z: 
Running system process:
  · Command: /usr/local/opt/ruby/bin/bundle install
  · Working directory: /usr/local/Cellar/shopify-cli/3.51.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2024-01-05T05:38:25.871Z: 
Running system process:
  · Command: /usr/local/opt/ruby/bin/bundle exec /usr/local/opt/ruby/bin/ruby /usr/local/Cellar/shopify-cli/3.51.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCNCr3qwGEPDj3qwGYpADCAESEDKFuqv6eUvGgCTwcNV671oaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWx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obeauty-com.myshopify.com/admin/api/unstable/themes.json?fields=id%2Cname%2Crole%2Cprocessing completed in 184652 ms
With response headers:

    
╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  request to https://amirobeauty-com.myshopify.com/admin/api/unstable/themes  │
│  .json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: read ETIMEDOUT   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2024-01-05T05:41:31.056Z: Unable to log analytics event - no information on executed command
2024-01-05T05:41:31.063Z: Reporting handled error to Bugsnag: request to https://amirobeauty-com.myshopify.com/admin/api/unstable/themes.json?fields=id%2Cname%2Crole%2Cprocessing failed, reason: read ETIMEDOUT
2024-01-05T05:41:31.088Z: Obtaining the dependency manager in directory /Users/baymax/Desktop/vscode/amiro...
    FetchError: request to 
    https://amirobeauty-com.myshopify.com/admin/api/unstable/themes.json?fields=id%2Cname%2Crole%2Cprocessing failed, 
    reason: read ETIMEDOUT
    Code: ETIMEDOUT

Reproduction steps

shopify theme dev -t=162423603516 -s=amirobeauty-com --verbose

Operating System

macOS Sonoma 14.1.2

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

3.51.2

Shell

zsh

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

v21.4.0

What language and version are you using in your application?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions