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]: Execute Shopify theme dev with error message: request to xxx.json processing failed, reason: Client network socket disconnected before secure TLS connection was established #3236

Closed
2 tasks done
neville-w opened this issue Jan 8, 2024 · 2 comments
Labels
Area: @shopify/theme @shopify/theme package issues no-issue-activity Type: Bug Something isn't working

Comments

@neville-w
Copy link

neville-w commented Jan 8, 2024

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

FetchError: request to https://funhooo.myshopify.com/admin/api/unstable/themes/164309598518.json?fields=id%2Cprocessing failed, reason: Client network socket disconnected before secure TLS connection was established

Verbose output

shopify theme dev --verbose
2024-01-08T07:23:27.465Z: Running command theme dev
  shopify:theme:dev init version: @oclif/[email protected] argv: [ '--verbose' ] +0ms
2024-01-08T07:23:27.479Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-01-08T07:23:27.479Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store funhooo.myshopify.com:
[]

2024-01-08T07:23:27.480Z: Getting session store...
2024-01-08T07:23:27.482Z: 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": "funhooo.myshopify.com"
  }
}

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

2024-01-08T07:23:28.144Z: Request to https://accounts.shopify.com/oauth/introspection completed in 651 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/"756c23b8065868b6e4a415790f477f80"
 - x-request-id: 447ba1d8-e092-4280-b38f-9c6d29f912ac
    
2024-01-08T07:23:28.148Z: The identity token is valid: true
2024-01-08T07:23:28.148Z: 
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-08T07:23:28.148Z: The current session is valid but needs refresh. Refreshing...
2024-01-08T07:23:28.149Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI6sPurAYQivzurAZSJggBEhAjtjdITttFdYuS96HS2mpFGhDaEIeqW85Mtq64OjIdi89REkDcW4G3wUjmxaHKAddYdwnaP_S1XwaXdDZqC-W6WdU812pbA7cHrb5LoPpm57fXXEv3eUI-1L5ixaoTBayY6UEP&refresh_token=atkn_CiEI6sPurAYQ6t2MrgaiARIKENoQh6pbzky2rrg6Mh2Lz1ESQCPM8zkXrWN08x6Shy9zhFmyHj6xZ_gFb7eTpOixZvfnAPQk4U4bvavrA-Eb3A888QvEQS6Q9eFooGK0OwvEVQM&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:28.833Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI6sPurAYQivzurAZSJggBEhAjtjdITttFdYuS96HS2mpFGhDaEIeqW85Mtq64OjIdi89REkDcW4G3wUjmxaHKAddYdwnaP_S1XwaXdDZqC-W6WdU812pbA7cHrb5LoPpm57fXXEv3eUI-1L5ixaoTBayY6UEP&refresh_token=atkn_CiEI6sPurAYQ6t2MrgaiARIKENoQh6pbzky2rrg6Mh2Lz1ESQCPM8zkXrWN08x6Shy9zhFmyHj6xZ_gFb7eTpOixZvfnAPQk4U4bvavrA-Eb3A888QvEQS6Q9eFooGK0OwvEVQM&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 681 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/"412ded1dba449d05b240a2261e0d5b92"
 - x-request-id: 78241630-b887-4b77-a72f-453196252cf1
    
2024-01-08T07:23:28.837Z: 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.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:28.837Z: 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.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:28.837Z: 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.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:28.837Z: 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%2Ffunhooo.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:29.472Z: 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 631 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/"6b67f5349562b4f01555da10c3c4b570"
 - x-request-id: 78d04c3d-ca22-4297-8e47-fa1eaeb9e9a1
    
2024-01-08T07:23:29.478Z: 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 635 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/"e0a55072c2163d0be93ea6fd5880cc85"
 - x-request-id: 385b5f67-28f6-4016-aabb-79c415715412
    
2024-01-08T07:23:29.481Z: 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%2Ffunhooo.myshopify.com%2Fadmin completed in 637 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/"6a024410c0ffb09d96253f35f38a01cb"
 - x-request-id: 532dc52e-ef87-40bb-bca7-07174b814a10
    
2024-01-08T07:23:29.507Z: 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 667 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/"878c1608b6a91eb0f6d004e480ea96fa"
 - x-request-id: f0f6cce4-e468-46cf-9b29-7a7d5cf15af3
    
2024-01-08T07:23:29.508Z: Setting session store...
2024-01-08T07:23:29.514Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-01-08T07:23:29.514Z: Getting session store...
2024-01-08T07:23:29.515Z: 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-08T07:23:29.515Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-01-08T07:23:29.515Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.53.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-01-08T07:23:30.127Z: Request to https://accounts.shopify.com/oauth/introspection completed in 610 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/"8c155d1ead6671175c5f0c41569c05b6"
 - x-request-id: 6a95a9c6-06d9-4c31-a3c5-24feeb91b9ea
    
2024-01-08T07:23:30.129Z: The identity token is valid: true
2024-01-08T07:23:30.129Z: 
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-08T07:23:30.138Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/neville/Workspace/funhoo

2024-01-08T07:23:30.153Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/neville/Workspace/funhoo

2024-01-08T07:23:30.267Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.53.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-01-08T07:23:30.268Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.53.0/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2024-01-08T07:23:30.491Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.53.0/libexec/lib/node_modules/@sh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KPcUahBl9eZWT9xOeZ7kvkJT0JlpEkCSRh9eYPdbR0WS9xQLHXFvQztqQiRmMAJ-AR-Pv2xU6kqJHYJ7LfkHGIAQWlrJbkqP-LW_SEkdqRY7Kx4-DBYF
  · Working directory: /Users/neville/Workspace/funhoo

2024-01-08T07:23:31.219Z: Getting development theme...
2024-01-08T07:23:46.559Z: Request to https://funhooo.myshopify.com/admin/api/unstable/themes/164309598518.json?fields=id%2Cprocessing completed in 15336 ms
With response headers:

    
╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  request to https://funhooo.myshopify.com/admin/api/unstable/themes/1643095  │
│  98518.json?fields=id%2Cprocessing failed, reason: Client network socket     │
│  disconnected before secure TLS connection was established                   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

2024-01-08T07:23:46.589Z: Unable to log analytics event - no information on executed command
2024-01-08T07:23:46.591Z: Reporting handled error to Bugsnag: request to https://funhooo.myshopify.com/admin/api/unstable/themes/164309598518.json?fields=id%2Cprocessing failed, reason: Client network socket disconnected before secure TLS connection was established
2024-01-08T07:23:46.601Z: Obtaining the dependency manager in directory /Users/neville/Workspace/funhoo...
    FetchError: request to 
    https://funhooo.myshopify.com/admin/api/unstable/themes/164309598518.json?fields=id%2Cprocessing failed, reason: 
    Client network socket disconnected before secure TLS connection was established
    Code: ECONNRESET

Reproduction steps

  1. shopify theme dev --store=funhooo --theme-editor-sync

Operating System

macOS Sonoma 14.2.1

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

3.53.0

Shell

zsh

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

v18.14.2

What language and version are you using in your application?

No response

@neville-w neville-w added the Type: Bug Something isn't working label Jan 8, 2024
@yanqc1996
Copy link

Can you refer to this #3225.

@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label Jan 11, 2024
Copy link
Contributor

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
Area: @shopify/theme @shopify/theme package issues no-issue-activity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants