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 returns published theme instead of development theme #3466

Closed
2 tasks done
stijns96 opened this issue Feb 22, 2024 · 74 comments · Fixed by #3471 or #3706
Closed
2 tasks done

[Bug]: Shopify theme dev returns published theme instead of development theme #3466

stijns96 opened this issue Feb 22, 2024 · 74 comments · Fixed by #3471 or #3706
Assignees
Labels
Area: @shopify/theme @shopify/theme package issues Type: Bug Something isn't working

Comments

@stijns96
Copy link

stijns96 commented Feb 22, 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

http://127.0.0.1:9292/ should serve the development theme

Actual behavior

http://127.0.0.1:9292/ serves the published theme

Verbose output

stijn@MacBook-Air-van-Stijn theme % shopify theme dev --verbose                    
2024-02-22T09:11:45.194Z: Running command theme dev
  shopify:theme:dev init version: @oclif/core@3.15.1 argv: [ '--verbose' ] +0ms
2024-02-22T09:11:45.208Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-02-22T09:11:45.208Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store bosch-stage.myshopify.com:
[]

2024-02-22T09:11:45.208Z: Getting session store...
2024-02-22T09:11:45.210Z: 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": "bosch-stage.myshopify.com"
  }
}

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

2024-02-22T09:11:45.466Z: Request to https://accounts.shopify.com/oauth/introspection completed in 247 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/"067339d8532fd52b511584a198b85081"
 - x-request-id: ffd95db2-818b-4955-a1e7-98d2da9fd13c
    
2024-02-22T09:11:45.470Z: The identity token is valid: true
2024-02-22T09:11:45.471Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-02-22T09:11:45.471Z: The current session is valid but needs refresh. Refreshing...
2024-02-22T09:11:45.472Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIgJncrgYQoNHcrgZSJggBEhBBC67Yl69P2KyiWIYFsSN5GhB25X0ShMRBFq7145JA3ofXEkCbDXEELFag5nZF6ZTvJKiYb22G-tS-3Cf6iwyg144tVwyBehMou0ke7KC-X5_h7DsgMrKsk8J_N4_K-2wh53gG&refresh_token=atkn_CiEIgJncrgYQgLP6rwaiARIKEHblfRKExEEWrvXjkkDeh9cSQAaTpPU4jhUmPGqfMyVWQhj0Ct36MiXl7X4wuQ5Jm4KzPyKv5kZzXmI8POF0EE_l56Wb6tY4CQyaxDCL7C22iAk&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:45.739Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIgJncrgYQoNHcrgZSJggBEhBBC67Yl69P2KyiWIYFsSN5GhB25X0ShMRBFq7145JA3ofXEkCbDXEELFag5nZF6ZTvJKiYb22G-tS-3Cf6iwyg144tVwyBehMou0ke7KC-X5_h7DsgMrKsk8J_N4_K-2wh53gG&refresh_token=atkn_CiEIgJncrgYQgLP6rwaiARIKEHblfRKExEEWrvXjkkDeh9cSQAaTpPU4jhUmPGqfMyVWQhj0Ct36MiXl7X4wuQ5Jm4KzPyKv5kZzXmI8POF0EE_l56Wb6tY4CQyaxDCL7C22iAk&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 265 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/"9f207c1a104e5692ebade96e7fce93a8"
 - x-request-id: bd5c9337-5d21-4995-9773-c73614e550cc
    
2024-02-22T09:11:45.742Z: 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.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:45.742Z: 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.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:45.742Z: 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.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:45.742Z: 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%2Fbosch-stage.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:45.950Z: 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 206 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/"d612fd32757ec33bfbfce416f173afdd"
 - x-request-id: d5cba59b-38d3-4346-8637-eb27cd1ef821
    
2024-02-22T09:11:45.964Z: 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 219 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/"9794ebd75dfd46a45b5662b3f8fd802c"
 - x-request-id: f4fb2857-3c4f-4064-bbc7-846e4645ac4a
    
2024-02-22T09:11:45.972Z: 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%2Fbosch-stage.myshopify.com%2Fadmin completed in 227 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/"a0e00af54eab1f75b55019d8c7dda312"
 - x-request-id: be6e0c60-16c6-4a7a-9ce0-0534b9032807
    
2024-02-22T09:11:46.052Z: 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 308 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/"30476b0dd2989958656ab403ee3e15ad"
 - x-request-id: 8255fea3-4f74-4c35-bede-14f725e32e42
    
2024-02-22T09:11:46.053Z: Setting session store...
2024-02-22T09:11:46.059Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-02-22T09:11:46.059Z: Getting session store...
2024-02-22T09:11:46.059Z: 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-02-22T09:11:46.059Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-02-22T09:11:46.060Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: darwin
 - Content-Type: application/json

2024-02-22T09:11:46.252Z: Request to https://accounts.shopify.com/oauth/introspection completed in 192 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/"9b0a557e81a1928faa8b089d7c8cecde"
 - x-request-id: 8a4a743e-f163-423d-a7de-8fd69c5713d1
    
2024-02-22T09:11:46.254Z: The identity token is valid: true
2024-02-22T09:11:46.254Z: 
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
  
2024-02-22T09:11:46.261Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

2024-02-22T09:11:46.273Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

2024-02-22T09:11:46.408Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-02-22T09:11:46.409Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2024-02-22T09:11:46.600Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8DCNGf3K4GEPHX3K4GYpADCAESED-F9Pqcm0CepM8os-dc6vEaqAFodHRwczovL2FwaS5zaG9waWZ5LmNvbS9hdXRoL3BhcnRuZXJzLmNvbGxhYm9yYXRvci1yZWxhdGlvbnNoaXBzLnJlYWRvbmx5IGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi5ncmFwaHFsIGh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5hZG1pbi50aGVtZXMgDSinUzIQwzzVKXXpQ5eKkLgJeKkqPzokZjJkMGY1OTktMzFjYS00YTBjLWI2MDAtODg2Mzk1ODM3OGZlQgdBY2NvdW50ShD0yx12w3JCGrIM_ggo5FbtUlN7InN1YiI6ImZiZGIyNjQ5LWUzMjctNDkwNy04ZjY3LTkwOGQyNGNmZDdlMyIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuc2hvcGlmeS5jb20ifWIQq0wU-P7DRCKuFTRC-QefQWoQrBU3pebITYSDaglyzRk3ohJAuY7fFYkhYwBJ0Pjxrcq-ozt4SMa1TNLekMEqSgWshfpHd1ISr6EBEpdoNsv3-v38XEXlsiYpMrpz1Dee0Zt7DA --sfr atkn_CqMCCNGf3K4GEPHX3K4GYpQCCAESEKzH-v1hqUrNs2emoX0lFIkaPmh0dHBzOi8vYXBpLnNob3BpZnkuY29tL2F1dGgvc2hvcC5zdG9yZWZyb250LXJlbmRlcmVyLmRldnRvb2xzINhSKKdTOiRmMmQwZjU5OS0zMWNhLTRhMGMtYjYwMC04ODYzOTU4Mzc4ZmVCB0FjY291bnRKEPTLHXbDckIasgz-CCjkVu1SU3sic3ViIjoiZmJkYjI2NDktZTMyNy00OTA3LThmNjctOTA4ZDI0Y2ZkN2UzIiwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy5zaG9waWZ5LmNvbSJ9YhCrTBT4_sNEIq4VNEL5B59BahCsFTel5shNhINqCXLNGTeiEkD7pOr3976XOwp6ppNhxrT0kmBK1ww_o3uMgO7nZO_G-l4_OarpHABMCmLTwY8JJ8q_kOQ27pfHvNvzHP22-OQO
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

2024-02-22T09:11:46.884Z: Getting development theme...
2024-02-22T09:11:47.187Z: Request to https://bosch-stage.myshopify.com/admin/api/unstable/themes/159229935962.json?fields=id%2Cname%2Crole%2Cprocessing completed in 301 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - x-request-id: 55ece533-7793-489d-a396-805525c5ded0
    
╭─ success ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                       │
│  Preview your theme                                                                                                                                                   │
│    • http://127.0.0.1:9292                                                                                                                                            │
│                                                                                                                                                                       │
│  Next steps                                                                                                                                                           │
│    • Customize your theme at the theme editor                                                                                                                         │
│    • Share your theme preview (https://bosch-stage.myshopify.com/?preview_theme_id=159229935962)                                                                      │
│                                                                                                                                                                       │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

2024-02-22T09:11:47.226Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/ruby -v
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

2024-02-22T09:11:47.234Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle -v
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

2024-02-22T09:11:47.340Z: Reading the content of file at /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-02-22T09:11:47.341Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle install
  · Working directory: /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

2024-02-22T09:11:47.529Z: 
Running system process:
  · Command: /opt/homebrew/opt/ruby/bin/bundle exec /opt/homebrew/opt/ruby/bin/ruby /opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme serve /Users/stijn/Sites/Projects/shopify-bosch/theme --live-reload hot-reload --theme 159229935962 --overwrite-json undefined
  · Working directory: /Users/stijn/Sites/Projects/shopify-bosch/theme

/opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:15: warning: observer was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add observer to your Gemfile or gemspec.
/opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:15: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec.
/opt/homebrew/Cellar/shopify-cli/3.56.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify:15: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
DEBUG GET https://bosch-stage.myshopify.com/admin/api/unstable/themes.json with request_id: 801717c5-997d-4c15-8715-15037425cc32
* Syncing theme #159229935962 on bosch-stage.myshopify.com
DEBUG GET https://bosch-stage.myshopify.com/admin/api/unstable/themes/159229935962/assets.json with request_id: eb26d7ad-5a60-4626-b41f-6aae63fdb19b
                                                                                                                                                                                                                                                          100%
[2024-02-22 10:11:48] INFO  WEBrick 1.7.0
[2024-02-22 10:11:48] INFO  ruby 3.3.0 (2023-12-25) [arm64-darwin23]
[2024-02-22 10:11:48] INFO  WEBrick::HTTPServer#start: pid=21632 port=9292

Reproduction steps

  1. Setup a repo with shopify
  2. run shopify theme dev
  3. Open http://127.0.0.1:9292 in browser

Operating System

macOS Sonoma v14.2.1

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

3.56.2

Shell

zsh

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

v20.10.0

What language and version are you using in your application?

ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23], node v20.10.0

Workaround

Got to http://127.0.0.1:9292/?preview_theme_id=xxx

Replace xxx with you development theme id. You can find it in the terminal or url of your theme editor.

@stijns96 stijns96 added the Type: Bug Something isn't working label Feb 22, 2024
@skyproddev
Copy link

skyproddev commented Feb 22, 2024

I have the exact same error. Thanks for opening the issue.

My details:

  • MacOS Sonoma 14.3.1
  • Shopify CLI version 3.56.2
  • I downloaded it with brew: Homebrew 4.2.9
  • NOTE: I updated Shopify CLI and Homebrew to attempt to fix the issue, but the error was also there on slightly older versions of each of them. I belive my Shopify CLI was 3.2 or something.
  • Node v21.1.0 if that matters

Is there anything I should hide if I share my verboose output?

@andrii-davydow
Copy link

I have the same error too.
It seems that this happened after updating to CLI version - 3.56.2.
It worked fine on version - 3.56.1

@stijns96
Copy link
Author

I found a simple workaround.

Simply add ?preview_theme_id=xxx behind your url

@stijns96
Copy link
Author

I have the same error too.
It seems that this happened after updating to CLI version - 3.56.2.
It worked fine on version - 3.56.1

It did happen on a 3.55.x as well. And somehow this issue is not always occuring....

@MaxDesignFR
Copy link

Same problem, I'm on 3.56.1.

@ivanturnovski
Copy link

Same problem, I'm on 3.56.1.

I'm on 3.56.1 but I don't have this issue

@richardsandersonworks
Copy link

Same for me, 24 hours ago there were no issues!
I updated to 3.56.2 hoping for a fix, but still seeing the published theme.

Preview link and theme editor link both working fine.

  • CLI 3.56.2
  • Mac OS Sonoma 14.3.1
  • Homebrew 4.2.9
  • Node 21.6.2

@zmalter99
Copy link

My team and I have the same issue.

@MisterDetour
Copy link

same issue here.

@fergus-haywood
Copy link

I'm also facing the same issue across multiple themes and shopify store's

@YWBK
Copy link

YWBK commented Feb 22, 2024

My team and I have the same issue on various themes. CLI 3.45.4

@edmeehan
Copy link

edmeehan commented Feb 22, 2024

Same issue, I feel much better now that I know its not just me. I am seeing random times it works... this feels like a network issue. Also I have two computers on the same OS version but different CLI versions having the same issue.

To add more details here is what versions I am running:
Both computers are running MacOS 14.3.1, the imac is running Shopify CLI version: 3.56.2, and powerbook is running 3.55.4

I have tried what many others have, uninstall and reinstall CLI, logout and login to CLI. My Imac started yesterday, and my powerbook started today. So some time had passed until both computers had the same symptom. I did have a moment that it worked as expected, but upon a new CLI method call, it stopped working again.

I will try the workaround, but it would be nice to solve this without the workaround.

@naadeiii
Copy link

Same issue here across 3 different stores, started around 24 hours ago for me. Using version 3.56.2

@domemby
Copy link

domemby commented Feb 23, 2024

Just to weigh in, our team is having the same issue from ~24 hours ago.

Current CLI version: 3.56.2

We've tried:

  • Deleting development themes and re-starting dev servers
  • Rebooting machines
  • Clearing cookies and site data
  • Viewing in private browsing across all major browsers
  • Adding the default Dawn theme
  • Upgrading to the latest CLI version

Waiting on the above PR to close then will test again

@edmeehan
Copy link

Since the workaround is passing an id as a query param, which started to happen on a timestamp and not a version update, this feels like something on the Shopify network. My guess something was updated and depending on what server we were connected to impacted us at different times. But we all experienced this starting sometime around Wednesday/Thursday. I suspect we won't see a new CLI release to fix this issue, but something Shopify needs to fix on their network end.

@stijns96
Copy link
Author

Hi @edmeehan ,

I'm also not 100% sure if the fix will help. Looking at the PR it looks like the do something with the cache that could fix the issue that they probably created outside the CLI.

Let's wait till it has been released to see if it will work.

@edmeehan
Copy link

I tested the solution and appears to be partial solution. Some other cache exists on standard browser window that is not being cleared out when a theme is deleted. This ticket should remain open for others having this issue.

I can confirm that if you go to the localhost link in a incognito window it will work, so it does appear to be a cache issue.

@edmeehan
Copy link

Also to add more to this, if you open the localhost link on your standard window then attempt to open in incognito, you will still see the published theme. So still some sort of cache issue. Solution for the ticket does not work as expected.

At least for me currently, I will try again in a few minutes to see if some timeout happens.

@sadsciencee
Copy link

getting the same issue on an older version (@shopify/cli/3.46.5)

don't think it's a version issue - something on shopify's end appears to have broken this feature for all cli versions

@karreiro
Copy link
Contributor

👋 Hey folks,

This issue should be fixed in Shopify CLI 3.56.3. If you're still facing this issue, could you please do the following?

  • Run shopify theme dev --verbose
  • Open the localhost URL
  • Share the logs here, if the localhost URL preview shows your live theme

Some changes on the platform generated this issue in the CLI and we're currently working around that at the CLI level as we can't rollback those changes. If version 3.56.3 is not working, it might reveal a different problem that needs to be fixed.

Thank you for reporting this and for providing all the details.

@architchandra
Copy link

architchandra commented Feb 29, 2024

I'm working on a theme app extension and am facing a lot of issues where any change that I'm making in the code is not reflecting on the development store preview page that I'm adding the app block to (product pages). The changes are showing up only if I reload the product page several minutes after I made the code change. This is making the development effort extremely infuriating (sorry). I'm wondering if my problem is also related to this issue. Any fix or suggestion on this front will be greatly appreciated. Thanks.

What I've tried so far (unsuccessfully):

  • Reloading the dev store product page on which I'm rendering the data using the theme app extension
  • Disabling the cache for this page and reloading (initially assuming this to be a browser caching issue)
  • Deploying the extension again using npm run deploy and then previewing again using npm run dev. A support forum thread suggested that this might work.
  • Upgrading the @shopify/cli package to 3.56.3 after seeing the latest release, but it has sadly not helped.

More info:

  • Shopify CLI v3.56.2 (npm package)
  • MacOS Ventura 13.6.3
  • Node v18.18.2

@olach
Copy link

olach commented Apr 10, 2024

This issue does not seem to have been fixed, or the issue is back again. After running shopify theme dev, the local instance serves the current live theme instead of the theme you are currently working on.

@bdl126
Copy link

bdl126 commented Apr 10, 2024

I'm seeing this bug again on my end as well

Mac version: 14.4.1 (23E224)
Node version: v21.7.2
Shopify cli version: 3.58.2
ruby version : ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]

@rmajidy
Copy link

rmajidy commented Apr 10, 2024

had same issue, upgraded my shopify cli via homebrew to v3.58.2 and everything work's smoothly!

@skyproddev
Copy link

For me it seems the issue is fixed, except for the one theme I was working on the day when the bug was active. It seems it's stuck in a cache or something.
Is there a way to clear a cache somewhere in the CLI? Or reset it?

@pmioni
Copy link

pmioni commented Apr 11, 2024

I found a simple workaround.

Simply add ?preview_theme_id=xxx behind your url

For anyone wanting to quickly find their theme id, it is shown in your terminal when starting theme dev:

[1] http://127.0.0.1:9292
[2] https://shop-id.myshopify.com/admin/themes/1234567890/editor
[3] https://shop-id.myshopify.com/?preview_theme_id=1234567890

In the above example, your theme ID is 1234567890 and you should run
http://127.0.0.1:9292?preview_theme_id=1234567890
to make the local preview work again.

@sadsciencee
Copy link

@bogdanoasa what has worked for me is deleting the temp dev theme and then starting up again
shopify theme dev -d (it will ask you to confirm first)

shopify theme dev -d command does not exist

sorry - shopify theme delete -d

@StewPoll
Copy link

I am still noticing this issue. At times it will return the published theme by default, but at times it will now also return the most recently used unpublished theme, and will refuse to create a development theme, unless I delete the unpublished theme, and then run shopify theme dev again. (I can't use the preview link, because the preview link is for the unpublished theme, there is no development theme created)

@karreiro
Copy link
Contributor

karreiro commented May 1, 2024

Thank you, everyone, for reporting this issue and contributing with details!

The release 3.59.2 has resolved issues involving the live preview and the development server.

To date, the team has mitigated all use cases that could be isolated based on the details we have today, but the intermittent reports suggest there might still be a problem. We'd like to avoid ambiguity and ensure all issues involving the live theme and the shopify theme dev command are fixed for everyone.

The intermittent nature of some reports makes this process challenging. Thus, please, if you notice any issue with the preview of the development involving the live, share a screenshot of the problem including the --verbose output with us (feel free to send it directly to me if you don't want to share here: guilherme.carreiro@shopify.com). With that, we can reproduce the exact scenario you're facing with the latest version of Shopify CLI.

Thanks again, everyone, for the details and for following this up.

@stijns96
Copy link
Author

stijns96 commented May 2, 2024

Hi @karreiro,

since v3.59.2 it's actually more broken then it ever was. Whenever we save a file and hot reload kicks in, it will automatically go back to one of the live themes...

Seen this at a colleague, so I will try to post a verbose asap.

Update
It only happens when you have installed it through npm

@nikitaourazbaev
Copy link

nikitaourazbaev commented May 2, 2024

This just started happening for me this morning with 3.59.1, and has continued after updating to 3.59.2. It happens after a reload. The initial load shows the correct theme. Using homebrew-installed global Shopify CLI.

Here’s the verbose output, the reload is towards the end of the log:

https://gist.github.com/nikitaourazbaev/9944c83a3a8514afa3b4f76e4be74747

@karreiro happy to send an unredacted one if this is not helpful.

@karreiro
Copy link
Contributor

karreiro commented May 2, 2024

Thank you for the context, @stijns96 and @nikitaourazbaev!

@nikitaourazbaev, could you please confirm if this behavior persists after you remove the password flag from the shopify.theme.toml file? By doing this, the CLI will prompt you to open the browser to authenticate.

That would help us narrow down the root cause of the issue. In our tests, removing the flag worked as a temporary workaround, suggesting that the issue is related to password-based authentication in some shops.

@stijns96
Copy link
Author

stijns96 commented May 2, 2024

Hi @karreiro,

We not using shopify.theme.toml yet.

@jonathanmoore
Copy link

jonathanmoore commented May 2, 2024

@karreiro 3.59.3 has been the version that has consistently given me issues with http://127.0.0.1:9292

Sometimes the first time I load the preview the correct version is show, but as soon as I refresh or browse to any other page I'm dropped back into the live theme.

Other times it simply loads the live theme as the preview.

I can use the URL http://127.0.0.1:9292?preview_theme_id=000000000 which seems to work for a bit, but eventually I'm dropped back into the live theme.

When it does drop out of the theme preview the normal URL will change to http://127.0.0.1:9292?_fd=0&pb=0

To try to help debug I did completely log out of Shopify, cleared all cookies related to Shopify and restarted the CLI to log back in.

@MaxDesignFR
Copy link

@karreiro 3.59.3 has been the version that has consistently given me issues with http://127.0.0.1:9292

Sometimes the first time I load the preview the correct version is show, but as soon as I refresh or browse to any other page I'm dropped back into the live theme.

Other times it simply loads the live theme as the preview.

I can use the URL http://127.0.0.1:9292?preview_theme_id=000000000 which seems to work for a bit, but eventually I'm dropped back into the live theme.

When it does drop out of the theme preview the normal URL will change to http://127.0.0.1:9292?_fd=0&pb=0

To try to help debug I did completely log out of Shopify, cleared all cookies related to Shopify and restarted the CLI to log back in.

To back this up, I experience all that as well, just as you described it. I also do not use shopify.theme.toml.

@hsdonkin
Copy link

hsdonkin commented May 2, 2024

I had an instance of this that reliably would drop me into the production theme after editing settings_schema.json and settings_data.json. There was a mismatch between the schema I was updating and the data stored there, and for some reason any file I edited after that would kick me back to prod. I captured in in verbose logging.

[2024-05-02 14:50:43] INFO  WEBrick 1.7.0
[2024-05-02 14:50:43] INFO  ruby 3.1.3 (2022-11-24) [arm64-darwin20]
[2024-05-02 14:50:43] INFO  WEBrick::HTTPServer#start: pid=87620 port=9292
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://seamusgolf.myshopify.com/?preview_theme_id=127690801238&_fd=0&pb=0
DEBUG `-> 302 request_id: 53d76480-081e-49d9-a468-f704ac92f04f-1714686661
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?_fd=0&pb=0&preview_theme_id=127690801238&_fd=0&pb=0
DEBUG `-> 302 request_id: e9a43d82-88a5-4b72-b885-586278349054-1714686661
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?_fd=0&pb=0&_fd=0&pb=0
DEBUG `-> 200 request_id: b5b5324e-274a-4509-aa74-e6eeb19d827c-1714686662
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/Liquid%20error%20(layout/theme%20line%20259):%20font_url%20can%20only%20be%20used%20with%20a%20font%20drop?_fd=0&pb=0
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/Liquid%20error%20(layout/theme%20line%20264):%20font_url%20can%20only%20be%20used%20with%20a%20font%20drop?_fd=0&pb=0
DEBUG Proxying GET https://seamusgolf.myshopify.com/checkouts/internal/preloads.js?locale=en-US&_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG `-> 200 request_id: 
DEBUG `-> 404 request_id: dd677ca8-95b8-49ce-8d7e-9e9bbb28c1d1-1714686663
DEBUG Proxying GET https://seamusgolf.myshopify.com/services/login_with_shop/authorize?target_origin=http%3A%2F%2F127.0.0.1%3A9292&api_key=123&locale=en&analytics_trace_id=adf96e9b-30de-44eb-bd85-a69e99964f50&analytics_context=checkout_sheet&compact_layout=true&flow=checkout_sheet&flow_version=1&checkout_version=checkout_one_checkout_sheet&shop_id=1291462&sign_up_enabled=true&_fd=0&pb=0
DEBUG `-> 404 request_id: e6b26259-6073-4682-8036-7af74a58e29a-1714686663
DEBUG `-> 302 request_id: a0de815f-449d-427e-9d8b-cd6e2ccc3a58-1714686664
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: b20fa038-e3d5-479a-9eba-fc00db14433a-1714686665
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: 2b57e303-fa58-41e8-9b27-d745bd4e8477-1714686666
DEBUG [HotReload] Modified layout/theme.liquid
DEBUG Proxying POST https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?_fd=0&pb=0&_fd=0&pb=0
DEBUG `-> 200 request_id: d10f9911-24e8-4654-a5c3-503f3d94f638-1714686676
DEBUG Proxying POST https://seamusgolf.myshopify.com/products/Liquid%20error%20(layout/theme%20line%20259):%20font_url%20can%20only%20be%20used%20with%20a%20font%20drop?_fd=0&pb=0
DEBUG Proxying POST https://seamusgolf.myshopify.com/products/Liquid%20error%20(layout/theme%20line%20264):%20font_url%20can%20only%20be%20used%20with%20a%20font%20drop?_fd=0&pb=0
DEBUG Proxying GET https://seamusgolf.myshopify.com/checkouts/internal/preloads.js?locale=en-US&_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG `-> 200 request_id: 
DEBUG Proxying GET https://seamusgolf.myshopify.com/services/login_with_shop/authorize?target_origin=http%3A%2F%2F127.0.0.1%3A9292&api_key=123&locale=en&analytics_trace_id=7ab49e28-8392-465b-a7d0-138a36039df7&analytics_context=checkout_sheet&compact_layout=true&flow=checkout_sheet&flow_version=1&checkout_version=checkout_one_checkout_sheet&shop_id=1291462&sign_up_enabled=true&_fd=0&pb=0
DEBUG `-> 302 request_id: 45502f9c-09b7-4750-a479-62a52c12ebff-1714686679
DEBUG New _shopify_essential cookie from response
DEBUG `-> 404 request_id: 228edaa8-10f7-414b-a5e8-b848d7b9ed91-1714686678
DEBUG `-> 404 request_id: 6c3f0846-c96b-4f0e-94df-8e2c916d9386-1714686678
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: a1f6d3a7-e2f6-4bc9-96c6-99691c893181-1714686680
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: 11fa5875-c0ef-4b6b-b754-e17c694bbead-1714686680
DEBUG New _shopify_essential cookie from response
DEBUG [HotReload] Modified layout/theme.liquid
DEBUG update layout/theme.liquid
DEBUG Proxying POST https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?_fd=0&pb=0&_fd=0&pb=0
DEBUG PUT https://seamusgolf.myshopify.com/admin/api/unstable/themes/127690801238/assets.json with request_id: 999476cd-aa38-4b1e-b941-9b3b74f23761-1714686689
  • 14:51:29 Synced » update layout/theme.liquid
DEBUG `-> 200 request_id: 81c2fb65-bccb-4fb7-8791-39c234b84d86-1714686689
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/checkouts/internal/preloads.js?locale=en-US&_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying POST https://seamusgolf.myshopify.com/recommendations/products?section_id=template--14328232214614__product-recommendations&product_id=6866403098710&limit=3&_fd=0&pb=0
DEBUG `-> 200 request_id: 
DEBUG `-> 200 request_id: 9385df33-42b6-4ab2-81c5-6523b9e85f1e-1714686690
DEBUG Proxying GET https://seamusgolf.myshopify.com/services/login_with_shop/authorize?target_origin=http%3A%2F%2F127.0.0.1%3A9292&api_key=123&locale=en&analytics_trace_id=ea5bb450-9b38-40ca-8e99-3a0a82cf0ef3&analytics_context=checkout_sheet&compact_layout=true&flow=checkout_sheet&flow_version=1&checkout_version=checkout_one_checkout_sheet&shop_id=1291462&sign_up_enabled=true&_fd=0&pb=0
DEBUG Proxying POST https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG Proxying POST https://seamusgolf.myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 302 request_id: 2d3ebeba-3ad2-4284-b99d-a76736090baa-1714686690
DEBUG New _shopify_essential cookie from response
DEBUG `-> 200 request_id: 778b74d8-f77d-4127-a8e1-856c15002cba-1714686690
DEBUG Proxying POST https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: 043c884d-821c-4745-9265-de153a32499d-1714686690
DEBUG `-> 200 request_id: b0754525-36d8-4d19-a5d4-7a2870c54b41-1714686691
DEBUG New _shopify_essential cookie from response

@hsdonkin
Copy link

hsdonkin commented May 2, 2024

I'm actually able to reliably duplicate the issue now in my Dawn theme:

  • navigate to product page with multi variant options
  • click variant option inputs
  • Dawn makes request to /variants/1234/?section_id=pickup-availability
  • request returns 404 response
  • click header link to homepage
  • see production theme via 127.0.0.1
[2024-05-02 15:33:55] INFO  WEBrick 1.7.0
[2024-05-02 15:33:55] INFO  ruby 3.1.3 (2022-11-24) [arm64-darwin20]
[2024-05-02 15:33:55] INFO  WEBrick::HTTPServer#start: pid=91732 port=9292
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://seamusgolf.myshopify.com/?preview_theme_id=127690801238&_fd=0&pb=0
DEBUG `-> 302 request_id: 7360046f-1d0a-4eef-b339-184b5f7ec96e-1714689239
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?variant=40244859666518&preview_theme_id=127690801238&_fd=0&pb=0
DEBUG `-> 302 request_id: ce006037-1d6c-43c6-a09f-25016c5e708b-1714689240
DEBUG Proxying GET https://seamusgolf.myshopify.com/products/2023-u-s-open-lacc-t-shirt?_fd=0&pb=0&variant=40244859666518&_fd=0&pb=0
DEBUG `-> 200 request_id: 1599bfb2-7be8-4c13-92f4-912b50cc1764-1714689240
DEBUG Proxying GET https://seamusgolf.myshopify.com/checkouts/internal/preloads.js?locale=en-US&_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG `-> 200 request_id: 
DEBUG Proxying GET https://seamusgolf.myshopify.com/services/login_with_shop/authorize?target_origin=http%3A%2F%2F127.0.0.1%3A9292&api_key=123&locale=en&analytics_trace_id=94f1fbda-6181-4321-96ea-e1902ad88381&analytics_context=checkout_sheet&compact_layout=true&flow=checkout_sheet&flow_version=1&checkout_version=checkout_one_checkout_sheet&shop_id=1291462&sign_up_enabled=true&_fd=0&pb=0
DEBUG `-> 302 request_id: a1f7d329-5532-4d13-9429-029bd4ef57c1-1714689242
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: c1e1bf7c-f867-4637-8e54-9a4cb927eb16-1714689243
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://seamusgolf.myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: cebccfa2-13ad-4ba9-a4cb-783579da41e1-1714689243

@tylerhellner
Copy link

I've been experiencing this issue for the past week as well. We're all on the latest version of the CLI. At least the preview theme search param override works for a bit.

@nikitaourazbaev
Copy link

nikitaourazbaev commented May 3, 2024

@nikitaourazbaev, could you please confirm if this behavior persists after you remove the password flag from the shopify.theme.toml file? By doing this, the CLI will prompt you to open the browser to authenticate.

@karreiro Indeed, if I remove the password flag from shopify.theme.toml, the behaviour does not persist. Haven’t tested for very long but if I add the password flag back in, the issue happens on the first reload.

I should add that when the issue is occurring, adding the preview_theme_id parameter does not fix it.

Thanks!

@pablogiralt
Copy link

+1

@StewPoll
Copy link

StewPoll commented May 4, 2024

@karreiro I'm not working today but wanted to add that we do not use .toml environment files, and still have this issue.

I usually just run the following: shopify theme dev --theme_editor_sync --path shopify --store relevant-store.myshopify.com

I have noticed lately it will sometimes do the following though, which is equally odd behaviour

  • Shopify.theme.role in console reprts the role of main
  • Liquid rendered is based off the published theme
  • Assets however, are based off the development theme (webpack)

So changes to styles/scripts reload, but liquid changes aren't reflected.

I mainly notice this if I have a tab opened with the published theme and then also try to visit the development theme via http://127.0.0.1:9292 I imagine the cookies might be getting shared somehow, which really shouldn't be the case.

@goroboto
Copy link

goroboto commented May 7, 2024

This still seems to be an issue in 3.60.0 – same experience that @jonathanmoore outlined above.

@karreiro
Copy link
Contributor

karreiro commented May 7, 2024

Thank you for reporting this scenario, @goroboto.

I'm following all reports and request IDs linked in this thread, to make sure that Shopify CLI 3.60 fixes this issue in all scenarios.

The version 3.60 should have stabilized the shopify theme dev command and fixed the issue outlined by @jonathanmoore indeed, and shopify theme dev should not be serving the live theme on http://127.0.0.1:9292.

@goroboto, could you please share your shopify theme dev --verbose --s <your-store>.myshopify.com output from the beginning until you face the issue? With that data, I can identify the exact scenario you're facing.

Thanks again, @goroboto!

@nikitaourazbaev
Copy link

I’ve been running 3.60.0 since this morning (~7 hours ago), and, so far, have not seen this issue.

@goroboto
Copy link

goroboto commented May 7, 2024

@karreiro I've obfuscated some of the data here but this is the log from the point where http://127.0.0.1:9292 switches from the expected local development experience to the published theme. Just let me know if any of this indicates an environment specific issue rather than a Shopify CLI one:

DEBUG [HotReload] Modified templates/index.json
DEBUG update templates/index.json
DEBUG Proxying POST https://[HIDDEN].myshopify.com/?_fd=0&pb=0&_fd=0&pb=0
DEBUG PUT https://[HIDDEN].myshopify.com/admin/api/unstable/themes/128142671941/assets.json with request_id: ddadff7a-0e95-461c-8f49-1f5735c7ac94-1715111564
  • 15:52:45 Synced » update templates/index.json
DEBUG `-> 200 request_id: 73f9bc0b-ef6e-451e-8c50-afc3ce121945-1715111565
DEBUG New _shopify_essential cookie from response
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff2?v=47861177322835483281712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff2?v=45390057718037518481712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff2?v=150042820690250991071712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff2?v=59629259288085191001712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff2?v=84530328642629243961712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 405 request_id:
DEBUG `-> 405 request_id:
DEBUG `-> 405 request_id:
DEBUG `-> 405 request_id:
DEBUG `-> 405 request_id:
DEBUG Proxying GET https://[HIDDEN].myshopify.com/checkouts/internal/preloads.js?locale=en-US&_fd=0&pb=0
DEBUG `-> 200 request_id: 344db2e0-a02d-4657-85a8-aa436833a991-1715111566
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff?v=8209676299495293601712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cdn/shop/t/164/assets/[HIDDEN].woff?v=102007167822739133561712708423&_fd=0&pb=0
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id:
DEBUG `-> 405 request_id:
DEBUG `-> 405 request_id:
DEBUG `-> 200 request_id: 74fac4cf-4f77-4920-8b28-f2fe44115089-1715111566
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: ac954471-5770-4993-9ec6-d3e2304b2062-1715111566
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart/update.js?_fd=0&pb=0
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: 44316dd4-c1d3-42d7-8dcd-b136675585fb-1715111567
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: dff219db-ee7e-4058-81cc-5311af8e237b-1715111567
DEBUG `-> 200 request_id: e350d645-7fde-47d5-a820-050a3ff55c74-1715111567
DEBUG `-> 200 request_id: 976b9e6d-a32e-4766-837f-af0f9d3e957d-1715111567
DEBUG New _shopify_essential cookie from response
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.js?i=1&_fd=0&pb=0
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.json?_fd=0&pb=0
DEBUG `-> 200 request_id: b657d8f1-7f8c-4843-a50c-683727e74f12-1715111567
DEBUG `-> 200 request_id: b7e77816-ec8a-4f53-98e8-aefce6f19aea-1715111567
DEBUG New _shopify_essential cookie from response
DEBUG New _shopify_essential cookie from response
DEBUG `-> 200 request_id: 0866a738-d584-4956-946b-f1303914de7b-1715111567
DEBUG New _shopify_essential cookie from response
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.js?eco_evt=true&_fd=0&pb=0
DEBUG `-> 200 request_id: de2c0052-b5e5-4399-96c0-278c77f42ed9-1715111567
DEBUG `-> 200 request_id: a66d309d-0200-462d-b784-0a803267c151-1715111568
DEBUG Proxying POST https://[HIDDEN].myshopify.com/cart/update.js?eco_evt=true&_fd=0&pb=0
DEBUG `-> 200 request_id: 98bceee1-1daf-49e7-b35f-183ad001d340-1715111568
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.json?_fd=0&pb=0
DEBUG Proxying GET https://[HIDDEN].myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: 0de4b3e6-169e-44db-b216-cdaadfe86def-1715111568
DEBUG `-> 200 request_id: a68d4161-c670-4491-b22a-4b7a5f0b5a3e-1715111568```

@StewPoll
Copy link

StewPoll commented May 8, 2024

@karreiro First, disclosure, I have not yet updated to 3.60, so I will attempt that shortly, but felt I would share this.

I have started this today, and it initially loaded with the dev theme.

It also stayed in the dev theme after making changes in the theme editor to the settings_data.json file.

However, after making a change to a CSS/JS file, and having those changes uploaded, it has switched to the main theme.

I've pulled some of the logs out, so that you can see when I made the changes to the settings_data.json file via theme editor, and how they synced ok. Then

PS E:\[STORE_DOMAIN]\[STORE_DOMAIN]-website> shopify theme dev --theme-editor-sync --path shopify --store [STORE_DOMAIN].myshopify.com --verbose
2024-05-08T03:15:27.866Z: Running command theme dev
2024-05-08T03:15:27.895Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-05-08T03:15:27.896Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store [STORE_DOMAIN].myshopify.com:
[]

....

DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: dcd829e8-7a56-4f9c-a880-e40336dc8392-1715138650
DEBUG get config/settings_data.json
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json?asset%5Bkey%5D=config%2Fsettings_data.json with request_id: f0b7643f-a4df-46cf-96bf-55d21239b511-1715138651
  • 13:24:12 Synced » get config/settings_data.json
DEBUG [HotReload] Modified config/settings_data.json
DEBUG Proxying POST https://[STORE_DOMAIN].myshopify.com/?_fd=0&pb=0&_fd=0&pb=0
DEBUG `-> 200 request_id: 4983eaff-65d2-4019-aa7f-dc49cffa69f1-1715138652
DEBUG New _shopify_essential cookie from response
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: b2da292a-a0f3-44b3-992c-1e61bdc2883b-1715138654
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/services/javascripts/countries.js?_fd=0&pb=0
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/checkouts/internal/preloads.js?locale=en-AU&_fd=0&pb=0
DEBUG `-> 200 request_id:
DEBUG `-> 301 request_id: 3d52aa1d-dbb9-4969-a26c-7cc9529316de-1715138658
DEBUG New _shopify_essential cookie from response
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/services/countries.js?_fd=0&pb=0
DEBUG `-> 404 request_id: 37006bfa-a5a7-45be-8c53-00c0fc78fbb9-1715138658
DEBUG `-> 404 request_id: a2a1dc6b-5e1c-44f1-be30-bfa9d58f5074-1715138658
DEBUG `-> 404 request_id: 9e87ce47-53c1-4ab2-9944-2833549035b7-1715138658
DEBUG New _shopify_essential cookie from response
DEBUG New _shopify_essential cookie from response
DEBUG `-> 404 request_id: 5e816595-cad6-4181-a890-f0ab7bebff9b-1715138658
DEBUG New _shopify_essential cookie from response
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 0acd2e1b-831d-4f76-a82d-d50a69bcac78-1715138659
DEBUG `-> 200 request_id: 06221c5b-3517-4691-a28c-1f88dc436300-1715138659
DEBUG `-> 404 request_id: 0b63b173-66a3-4737-bd63-b48d8563cad5-1715138659
DEBUG New _shopify_essential cookie from response
DEBUG `-> 404 request_id: ab947c0e-db86-467f-8488-1ec24afacd4e-1715138659
DEBUG New _shopify_essential cookie from response
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: bec87fb3-b49f-4f21-b095-1db997ec594b-1715138664
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 408e4ae6-6921-4494-864c-d95f9fbde92b-1715138668
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 39516824-2aa5-44ea-ad54-8390339cc8a2-1715138673
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c78e8775-3d8b-44d5-9ebc-59f528ff494a-1715138677
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 6dd5803d-7de0-4b6e-b9ac-7c8fc6da6bad-1715138682
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 580b6e64-6541-4425-83a2-07c852a5d86c-1715138686
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 42389785-ee94-4791-975d-32f92c8d4d63-1715138690
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 726dca50-36ce-445b-b38b-ab65e1b4ea0e-1715138695
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 83b3c542-8132-4cbc-abad-34084ed353a3-1715138699
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 29652ac2-8ec9-458e-9652-80baaf1c1232-1715138703
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: a0e33918-4cb3-4783-b29c-4ad10deef89e-1715138707
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 10e20911-b570-48d1-86a0-b0f376c79f42-1715138712
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 0a799412-c610-4e5c-a929-b748dda90586-1715138716
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 934041a2-80cb-497f-b701-a840da581f98-1715138720
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 316c1f9d-280f-48ff-bcf5-d3665aeb9993-1715138725
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: ff9d769f-8e81-421e-95d9-fffbb2136bad-1715138729
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 577d9358-bfa0-4fc9-9a64-0305f41fdb3d-1715138733
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: ece5c91e-363f-44d7-9030-d96447ccbe70-1715138737
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 130b6c0e-1190-4128-8829-7c87ae4eb944-1715138742
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 63d9ebec-c8f3-47ce-859e-5a72a7045c7e-1715138746
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: ed565130-560c-4b04-ac47-ee2de3bfdb3c-1715138750
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 2628e426-7831-47c1-8475-0e758bf2fa88-1715138754
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 9849a164-9d35-4a64-baf4-a497190ac0b4-1715138759
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 381b0724-5818-42a7-a863-8a6b5fcbe7a3-1715138763
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c49de028-90a0-4890-a8d6-c6591271a009-1715138767
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 1b17b004-256e-40f3-819d-70fa0871dfc4-1715138771
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 1c764719-d334-4214-8fcd-1acb7362e666-1715138776
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 334b0253-28c5-4698-9e2e-4f9395f5e6b0-1715138780
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: d74ff143-98bf-4bf0-bb38-2ed580de0e96-1715138784
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 36bf1376-b796-4017-a38a-e204340389f6-1715138788
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 3406ce44-e48a-43f0-abcc-3d20c8bd9b1f-1715138793
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: a1fdb024-dc7a-4424-b12c-e7377a9ca231-1715138797
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8e2b9e09-7781-4994-b6ad-86318b91d44a-1715138801
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: e58e8866-78a6-483a-a9ee-301462ecadde-1715138805
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8e2a6efd-6743-422a-b11d-5f970c1fd6b6-1715138810
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c21c6545-b850-4c80-b4c7-a35adba8a7f2-1715138814
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8ebfd6b0-9309-45a8-a227-b3372a00d6a4-1715138818
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 2740cb32-986d-45cf-880e-96008124a0a8-1715138822
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 6175cc0b-4b14-4e7f-8df3-88e16e1db3d8-1715138827
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 43c7cf80-36f8-4131-94a3-c60485808ead-1715138831
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 37653c76-50a0-4870-9587-9ad89eda7aa7-1715138835
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8043c4c6-c7d5-4de7-83cb-abf80ee0d5f3-1715138840
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: a9190916-3b0e-4417-8037-ee765d1fb229-1715138844
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: cc5df0dd-9a84-4c97-bee7-16ee0a515238-1715138848
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 68750005-0d40-4d15-9f51-8b6c2b6f8cdc-1715138852
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 9e97e1c3-4f58-4bd9-acab-d0da0ada19f3-1715138857
DEBUG update assets/template.index.css
DEBUG [HotReload] Modified assets/template.index.css, assets/template.page.css
DEBUG update assets/template.page.css
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: b36b97b0-c613-4530-a62a-a7c99aca4910-1715138861
DEBUG PUT https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 00708c98-348c-4ab7-8d1e-b78ba6065258-1715138860
  • 13:27:43 Synced » update assets/template.index.css
DEBUG PUT https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: a09bd57b-401d-48c6-b796-7e9488a93ed8-1715138861
  • 13:27:44 Synced » update assets/template.page.css
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c0462fc4-ac08-4e9f-b363-79b2e0ac9d7b-1715138865
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 51ea4429-5f76-4ee6-aabf-f4c2a22e1503-1715138870
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 18cbea32-b486-45d2-9af1-46f915a0a749-1715138874
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: e81ea72f-2ef9-4956-a0bb-dd849887422b-1715138878
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 22fdbd69-412a-4e88-8640-9c3924c86139-1715138882
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 6bc26908-feae-4828-bee5-9d918776e58d-1715138887
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 61d21e9b-d9dd-41af-9742-ad4410588d21-1715138891
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 0211e105-7d3e-4031-9b5a-988943abef54-1715138895
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 117b8352-03c7-4dab-a0a0-863ea5583834-1715138899
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: d950b88e-5637-43c8-be40-d2798da2c839-1715138903
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: cc4f1f82-bfb4-45ae-bd6d-bb997afd259c-1715138908
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: ba3726a0-a824-4e28-ac47-6e45c1c52912-1715138912
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: e25228e3-be44-4dbf-a84a-593667ea1e67-1715138916
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 774eace1-d9af-472b-a4c5-cbcad5524d23-1715138920
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 1a954c3b-f15b-4751-93af-db160f4ddad6-1715138925
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 0006ee25-cb44-47cb-8ed2-38897d8eea51-1715138929
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: d86897f0-672b-4ea2-92eb-8dd131e94936-1715138933
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 988828c9-3fe2-42ec-a520-68d2dac609f6-1715138937
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 613d8066-55c6-49c2-9977-fc48244657db-1715138942
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8a97a28b-8fea-47d4-ad70-6da6546c7933-1715138946
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: b720a81c-e1ce-4cb7-b891-bb7ed0754a3e-1715138950
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: f6c7479c-2d1e-44d2-806a-c27143d5fb53-1715138954
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 8257a79d-e8c0-4390-9086-199816aaf611-1715138959
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 04f2ba63-6f6e-423d-b054-b3e914016dae-1715138963
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: f95f2532-5711-4d8a-bb4b-248c1b980cff-1715138967
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 0148aaa3-783b-4541-8047-d935f8fee7a6-1715138971
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: b3c32890-8b32-481a-b101-666cb49bd122-1715138976
DEBUG `-> 200 request_id: d43aacad-f349-4867-a273-d1df1ee8f588-1715139040
DEBUG New _shopify_essential cookie from response
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 6046df7a-f8b0-48c0-9d2e-d3b12c0ab74c-1715139042
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/services/javascripts/countries.js?_fd=0&pb=0
DEBUG [HotReload] Connected to SSE stream
DEBUG `-> 301 request_id: df2ef0cc-98b5-4ea1-b24a-ef963394a583-1715139046
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/services/countries.js?_fd=0&pb=0
DEBUG Proxying GET https://[STORE_DOMAIN].myshopify.com/checkouts/internal/preloads.js?locale=en-AU&_fd=0&pb=0
DEBUG `-> 200 request_id:
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: e1328b3f-d63e-4b55-9b4d-6557c37395a9-1715139047
DEBUG `-> 200 request_id: 34654d78-9ded-4eaf-b5db-f535d2958b34-1715139047
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 600522d0-4d70-46da-a5c0-abc27d283189-1715139051
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c82b79da-ab9e-421a-98dc-d317c816cf87-1715139055
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: c71055b5-8e82-452e-b9ce-ef91eb7af88a-1715139059
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: 547e0d5c-ddd0-4eb7-87f1-8bbae531649f-1715139064
DEBUG GET https://[STORE_DOMAIN].myshopify.com/admin/api/unstable/themes/[THEME_ID]/assets.json with request_id: f8f35b64-5ca4-4742-a2b6-cb7d17809a15-1715139068
DEBUG Stop signal: "SIGINT"
Stopping…
Terminate batch job (Y/N)? y

I do believe around request_id: d43aacad-f349-4867-a273-d1df1ee8f588-1715139040 is when it switched over, as that is when a new cookie is sent from the response.

@StewPoll
Copy link

StewPoll commented May 8, 2024

@karreiro I was running 3.59 earlier today and was still having the issue there. I've updated to 3.60 and have not yet experienced the issue.

@karreiro
Copy link
Contributor

karreiro commented May 8, 2024

Thanks a lot for sharing these logs, @goroboto!

I've followed the request ids, and the user agent indicates the CLI is running on version 3.59.3. So, an error might have happened during the upgrade.

Could you please try to reinstall it? The CLI 3.60 includes a fix for the issue where http://127.0.0.1:9292 switches from the development to the published theme.

Thanks a lot for sharing those details!

@goroboto
Copy link

goroboto commented May 8, 2024

@karreiro thank you for reviewing. I did just notice when using --verbose that the log returned a User-Agent value of Shopify CLI; v=3.59.3.

After a reinstall via brew using the following commands:

brew uninstall shopify-cli
brew tap shopify/shopify
brew install shopify-cli

...I ran shopify version and got Current Shopify CLI version: 3.60.0 – but the User-Agent in the log still shows 3.59.3 🤔 Doesn't seem to be a cache issue w/ brew.... at least this gives me a target to troubleshoot here!

@goroboto
Copy link

goroboto commented May 8, 2024

@karreiro we tried this on a few different machines and it looks like this issue is only occurring on the install I was initially testing it on. Everywhere else it's 3.60.0 and 127.0.0.1:9292 is working great! Thank you for fixing this!

@sadsciencee
Copy link

working very nicely for me on 3.60.0 after the update + restarting machine

have also noticed that switching between locales/markets is working much better than before - this was a bit of a pain point previously

thanks for all the attention to this @karreiro really appreciate you sticking with us

@isaacroldan isaacroldan added the Area: @shopify/theme @shopify/theme package issues label May 10, 2024
@karreiro
Copy link
Contributor

Thanks a lot, everyone, for contributing feedback and logs!

Since version 3.60, we have not received any new reports of intermittent issues of this nature, confirming that the fix we shipped has really addressed all remaining scenarios. Therefore, I'm closing this issue.

@karreiro karreiro self-assigned this May 14, 2024
@haziqfiqri
Copy link

I flush my dns and shopify theme dev works as usual.

windows:

ipconfig /flushdns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment