Closed notrealdev closed 1 year ago
Hi @notrealdev . Thanks for bringing up this issue and sorry for inconveniences. The error you are seeing is because the session token used by the CLI to sync the files has expired. The expiry configuration should be set by default to 120 minutes, so thats why the CLI is restarting the theme server process in intervals of 110 minutes so the token is refreshed.
Each time the cli restart the server to refresh the token you should see the Viewing theme...
instructions, could you verify if for any reason the server is not being restarted each 110 minutes?
Hi @alvaro-shopify, thanks for your reply. I don't know how to verify that. From the early versions of CLI 2x, I didn't have this problem, even though I work all day (~10 hours) but from the end of CLI 2x versions to this CLI 3x version, I've had this problem. Really annoying :(
Hi @notrealdev. Thanks again for your feedback and sorry again for inconveniences. Each time the server is restarted, which should be in intervals of 110 minutes, you should see some instructions similar to the ones attached below
Once agains I would like to thank your feedback because it's very valuable for us thus we can improve the CLI3 usage experience
Hi, I usually use --live-reload=off
, maybe the problem lies here?
Sometimes, I get an error
Sometimes, i get an error
Hi @notrealdev . These errors appear just after the server is restarted right?
Hi, @alvaro-shopify
This error occurs after a few hours of work, sometimes it automatically Syncing theme
, and sometimes it disconnects and gives the above error
Hi @alvaro-shopify Do you have any new information about this error? My coworker also had the same problem on macOS
Hi @notrealdev !. Sorry for the delay in the response. We haven't been able to reproduce it in our environment. The problem is that some hours should past until the issue appears. We have shared the issue with our partners @Shopify/theme-developer-tools because so they can give us support as well
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.
I have updated shopify cli and npm to the latest version. I will update again if the problem is still there.
// Update After a few hours, the problem is still there.
+1. What I'd like to see is the option to use an API key for the Shopify store for a persistent session, or to eliminate the need to login at all (like a service worker). As it stands, the dev server needs to be restarted manually multiple times a day, and can cause workflow problems.
IE, you're making changes, not watching the terminal because you're also using something like webpack watch, and changes aren't conveying through the live reload because of the "Please login again" error. You debug code first because you're in code, then realize you need to restart the dev server because some arbitrary amount of time has passed. If there's built-in refresh for the token, it's not happening seamlessly. OSX, installed via npm
Hi, any news yet for this ~bug~ featured?
Thank you for reporting this issue and for sharing these details, everyone. We really appreciate it.
I just wanted to let you know that the @shopify/theme-code-tools team is aware of this problem and it's on our roadmap. We're working to get a fix for it as soon as possible. As soon as we have an update, we will leave a comment here.
Thanks again for bringing this up!
Having the same issue. I would understand if this happened every few days (or honestly even once a day) but I have to "log in again" about every 2 hours or so. Defeats the purpose of the auto-restart for the theme dev command.
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.
Fixed by https://github.com/Shopify/cli/pull/2025.
Hi, when is the new version coming out? I still see this warning here, right now.
@karreiro I can concur with @notrealdev that I have upgraded to the latest CLI (3.46.2) and I am still getting the "Please login again" issue.
Was the fixed rolled out with the latest CLI update?
Thank you, @notrealdev and @zebsites for that input, I'm re-opening this issue for further investigation.
Could you please re-run the command using the --verbose
flag? This will give us more insights into the underlying infrastructure and any differences in your store compared to the ones we used during the fix validation.
Thanks again for sharing this context.
@karreiro yes, started the dev command today with --verbose and here is the output just prior and including the Please login again
error (let me know if you need any prior history as well, I've kept the whole log but it's very long of course):
DEBUG GET https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 48423661-f010-4c57-9a10-bc70b44ecaa4
DEBUG GET https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: a82eb2bc-f245-40a8-ade7-2e8ba0987c38
DEBUG GET https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 9b8b4c6b-810a-4a40-bdc6-1d107b1500e1
DEBUG GET https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: a13daea1-4530-4649-ad84-024f2cddd774
DEBUG GET https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 55633958-2cff-4837-b4aa-be9c6b3c1e2f
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/collections/events?_fd=0&pb=0
DEBUG `-> 302 request_id: 1d0730ce-295b-43fa-8412-26c34e281b80
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/password?_fd=0&_fd=0&pb=0
DEBUG `-> 200 request_id: 31bb10ce-996d-45ff-ab55-6572385c3115
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/favicon.ico?_fd=0&pb=0
DEBUG `-> 404 request_id: e02785a8-c6d7-415c-bb23-96a8100ad37b
DEBUG Proxying POST https://mixed-media-girl.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: f17e61d5-29cb-4dee-97c9-07922c48edfa
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/?_fd=0&pb=0
DEBUG `-> 200 request_id: c488193b-3033-44e0-9eb5-4e2a1c6fc25a
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: 545671b4-1bad-4745-a01c-b045c941d0ac
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/?_fd=0&pb=0
DEBUG `-> 200 request_id: e94ef6f5-ebdb-4e0b-873e-03102c2e0dea
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: c67ea52c-8fe9-4cb9-9193-b293a885499e
DEBUG update sections/image-banner.liquid
DEBUG update assets/general.css.map
DEBUG [HotReload] Modified sections/image-banner.liquid, assets/general.css.map, assets/general.css, assets/general.scss, .idea/workspace.xml
DEBUG PUT https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 8c80a076-6a57-4df4-8b9a-c9825d033102
• 11:20:29 ERROR » update sections/image-banner.liquid: ✗ Please login again
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:88:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:469:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/identity_auth.rb:120:in `reauthenticate'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:93:in `block in rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:181:in `rescue in retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:171:in `retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:92:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:38:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:22:in `put'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:314:in `update'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:293:in `perform'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:156:in `block (3 levels) in start_threads'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `loop'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `block (2 levels) in start_threads'
DEBUG update assets/general.css
DEBUG PUT https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 9d7b0c95-88a4-444b-a374-4c4d00ace0d3
• 11:20:29 ERROR » update assets/general.css.map: ✗ Please login again
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:88:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:469:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/identity_auth.rb:120:in `reauthenticate'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:93:in `block in rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:181:in `rescue in retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:171:in `retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:92:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:38:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:22:in `put'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:314:in `update'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:293:in `perform'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:156:in `block (3 levels) in start_threads'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `loop'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `block (2 levels) in start_threads'
DEBUG update assets/general.scss
DEBUG PUT https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 3acbca1f-a27b-4038-a922-9be79bf7f709
• 11:20:29 ERROR » update assets/general.scss: ✗ Please login again
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:88:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:469:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/identity_auth.rb:120:in `reauthenticate'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:93:in `block in rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:181:in `rescue in retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:171:in `retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:92:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:38:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:22:in `put'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:314:in `update'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:293:in `perform'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:156:in `block (3 levels) in start_threads'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `loop'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `block (2 levels) in start_threads'
DEBUG PUT https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: 1a688fbc-30a6-4df2-a1e2-df7be268a8d1
• 11:20:29 ERROR » update assets/general.css: ✗ Please login again
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:88:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:469:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/identity_auth.rb:120:in `reauthenticate'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:93:in `block in rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:181:in `rescue in retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:171:in `retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:92:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:38:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:22:in `put'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:314:in `update'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:293:in `perform'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:156:in `block (3 levels) in start_threads'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `loop'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `block (2 levels) in start_threads'
@karreiro one more log, because it did something different when I tried to save one more time after all that above. I don't know enough to know what all of this means, but it almost looks like it did try to authenticate again but couldn't?
DEBUG Proxying POST https://mixed-media-girl.myshopify.com/?_fd=0&pb=0
DEBUG `-> 200 request_id: 7027c093-ed1d-44ed-8594-3ab21d2644ef
DEBUG [HotReload] Connected to SSE stream
DEBUG Proxying GET https://mixed-media-girl.myshopify.com/cart.js?_fd=0&pb=0
DEBUG `-> 200 request_id: 37e54ec1-7854-47e6-a979-3fe0f66f28bd
DEBUG [HotReload] Modified .idea/workspace.xml
2023-06-08T18:25:45.676Z: Refreshing theme session tokens...
2023-06-08T18:25:45.677Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2023-06-08T18:25:45.677Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store mixed-media-girl.myshopify.com:
[]
2023-06-08T18:25:45.677Z: Getting session store...
2023-06-08T18:25:45.678Z: 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"
]
For applications:
{
"adminApi": {
"scopes": [],
"storeFqdn": "mixed-media-girl.myshopify.com"
}
}
2023-06-08T18:25:45.678Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-06-08T18:25:45.678Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:45.916Z: Request to https://accounts.shopify.com/oauth/introspection completed in 237 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/"6943a3895e1e01b63fc33eb84fe8c51b"
- x-request-id: 3456ba4c-5853-438f-a230-f177d947b5d4
2023-06-08T18:25:45.917Z: The identity token is valid: true
2023-06-08T18:25:45.917Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2023-06-08T18:25:45.917Z: The current session is valid but needs refresh. Refreshing...
2023-06-08T18:25:45.917Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_6d6bd20b8543afe4e3c28216ec999d3a9801807d75670ab29cdf877d39d2271c&refresh_token=atkn_76eb1c637f895c523f9616227dec49a38113d15f7462f3bd9bc198c2e759851f&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:46.382Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_6d6bd20b8543afe4e3c28216ec999d3a9801807d75670ab29cdf877d39d2271c&refresh_token=atkn_76eb1c637f895c523f9616227dec49a38113d15f7462f3bd9bc198c2e759851f&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 464 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/"7e87e492b9476aa176da77824415f40e"
- x-request-id: 82d3c7f3-be3d-4d7f-b42a-b5f951f66558
2023-06-08T18:25:46.383Z: 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=openid+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:46.383Z: 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=openid+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:46.621Z: 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=openid+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929 completed in 236 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/"1bccef212e9f65be48eb2d3f16a7efe8"
- x-request-id: 74bcb925-30f2-4c75-b754-38ebd776de5c
2023-06-08T18:25:46.857Z: 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=openid+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929 completed in 474 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/"05e66edfc10366e9e08ee96f3ad377de"
- x-request-id: 60916de8-24d1-4252-857e-878fd26699c9
2023-06-08T18:25:46.858Z: 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=openid+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=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929&destination=https%3A%2F%2Fmixed-media-girl.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:47.109Z: 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=openid+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=atkn_54c88c5aab1107ecc42e0901ecd8b19fc3c0dd106d7ee2f9da0be7c1062a1929&destination=https%3A%2F%2Fmixed-media-girl.myshopify.com%2Fadmin completed in 250 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/"5dfe818a6f6e06088998a98df6d9e7a6"
- x-request-id: 7a46e599-30e7-48f6-af97-ba7aa6f36017
2023-06-08T18:25:47.110Z: Setting session store...
2023-06-08T18:25:47.131Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2023-06-08T18:25:47.131Z: Getting session store...
2023-06-08T18:25:47.131Z: 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"
]
For applications:
{
"storefrontRendererApi": {
"scopes": []
}
}
2023-06-08T18:25:47.131Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2023-06-08T18:25:47.131Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.46.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2023-06-08T18:25:47.320Z: Request to https://accounts.shopify.com/oauth/introspection completed in 187 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/"590f9f9e11d239991b32440d335c328e"
- x-request-id: e0b42656-1391-48b3-baf4-f1c3de990f50
2023-06-08T18:25:47.320Z: The identity token is valid: true
2023-06-08T18:25:47.320Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2023-06-08T18:25:47.324Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/ruby -v
· Working directory: /Users/zebsola/Documents/Mixed Media Girl/Dev Theme
2023-06-08T18:25:47.336Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle -v
· Working directory: /Users/zebsola/Documents/Mixed Media Girl/Dev Theme
2023-06-08T18:25:47.485Z: Reading the content of file at /usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2023-06-08T18:25:47.486Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle config set --local path /Users/zebsola/Library/Caches/shopify-gems-nodejs
· Working directory: /usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby
2023-06-08T18:25:47.638Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle config set --local without development:test
· Working directory: /usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby
2023-06-08T18:25:47.793Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle install
· Working directory: /usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby
2023-06-08T18:25:48.098Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle exec /usr/local/opt/ruby/bin/ruby /usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin atkn_eyJhbGciOiJSUzI1NiIsImtpZCI6Ik4teW1MUDR5TWt2MlR2X3hjWkNNSlltZ2JDbjhQbm5WLWRBbUJHbTlHb3cifQ.eyJ0IjoiVzRaSTBPSFQ2ZEM0MSszWFdiK0tnSUVzMFV1YUdPM1RsRDVqZGJoMnRyWT0ifQ.fKyahMiQ_SKXG0ntp7P0BbEUB7jbJzDtMmyibwTP_DfO9qsyTLr_AsZFuuREOKsbiRXlu0lN4-aMysgkXQaNl8v0sD881PulimOWQlVaDtTmD_3M6_4vhIJTnqwitPexqr9fiv-dWLZ2qxCNRFYU5EHskVr3z-de0sPUzggsTUKCFn7qhB_u67FXCjxSyi0GttMJCheMlnpJqMkTabD4pUYAwO714tBx3auIiAurb_-8_VJX6-BNdbVuxsK1wEE6xvHTp4B75qbN2yRQ9EKOZcSBd61MCoMyPze-qCcaUo21s5Z2zzHG_T1LrCOD2h7K2ne60u4_dUa8u5zmfeZtSA --sfr atkn_eyJhbGciOiJSUzI1NiIsImtpZCI6Ik4teW1MUDR5TWt2MlR2X3hjWkNNSlltZ2JDbjhQbm5WLWRBbUJHbTlHb3cifQ.eyJ0IjoicmNtS3NXdndoYXJoa01ROExiOFVoc1hzcFQreWQ1U242Q25IemVEWFF1ST0ifQ.uSjMC7tioXhq2plUkcuFGQmer5qX78rAs0YILjxdWuTndoAtA6VZTVx7WJcpRg8csgJ5IS6ZgfggvwLV6gb9wiusDS6EdJIz4MaP0Zg2zLU0MO9XDS04jovL9rijJHrjorjacmGQn6_tP6-jigTvM585pj8Dc7OD8MP2Kth8UHqPPXTJYy2CxLU_T2UmMcXqpeDr8TDQU2g42Tp-y0xRM2FFjL9WpTCAuzrea5yVCcwOb0de0x5hnZ4FJc6Mof8o5jscNS_4gnKp3ypQeH-wArWmnYxqE3C96FyCEikGZVxW37PyCNc2H7M7Q4KAaglLGr5KLMKDSzt5iPP8Z8EF2g
· Working directory: /Users/zebsola/Documents/Mixed Media Girl/Dev Theme
DEBUG [HotReload] Modified sections/image-banner.liquid, .idea/workspace.xml
DEBUG update sections/image-banner.liquid
DEBUG PUT https://mixed-media-girl.myshopify.com/admin/api/unstable/themes/151226253616/assets.json with request_id: e220afb2-2ff7-426d-8660-07638bd2341f
• 11:26:07 ERROR » update sections/image-banner.liquid: ✗ Please login again
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:88:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/context.rb:469:in `abort'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/identity_auth.rb:120:in `reauthenticate'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:93:in `block in rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:181:in `rescue in retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/util.rb:171:in `retry_after'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/admin_api.rb:92:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:38:in `rest_request'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/theme_admin_api.rb:22:in `put'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:314:in `update'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:293:in `perform'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:156:in `block (3 levels) in start_threads'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `loop'
/usr/local/Cellar/shopify-cli/3.46.2/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/syncer.rb:152:in `block (2 levels) in start_threads'
@karreiro yes, started the dev command today with --verbose and here is the output just prior CLI version: 3.46.3
After a few hours this error appeared.
Thank you for providing the additional details, @zebsites and @notrealdev. I'm going to ensure the fix addresses those workflows.
We have just released the version 3.46.4 with a fix for the authentication for theme dev
that may fix this issue. Please, try with that version and let us know if it doesn't work.
Hi @gonzaloriestra I have updated to the latest version Now can't work with CLI
On windows:
On macos:
How to downgrade shopify cli from 3.46.4
to 3.46.4
on home brew macos?
@notrealdev
Had the same issue, so while they fix it up:
If you installed CLI with NPM, then you can run these commands (this is at least what I did)
npm uninstall -g @shopify/cli @shopify/theme
npm install -g @shopify/cli@3.46.3 @shopify/theme@3.46.3
If you installed with homebrew, I think it can be more difficult than with NPM. But apparently if you recently had the older version installed it may work with a command like:
brew install shopify-cli@3.46.3
Otherwise I'd just suggest to uninstall homebrew version and install with NPM if you're alright with it:
brew uninstall shopify-cli
npm install -g @shopify/cli@3.46.3 @shopify/theme@3.46.3
(Or wait for someone else who knows more about homebrew to give a better answer 😄)
There's a fix on the way for this problem, sorry for the inconvenience.
Could you please try upgrading to 3.46.5?
Hi, I am using
shopify theme dev
to develop my custom shopify. It's annoying that it strangely stops automatically, can I stop it from automatically stopping? Are there any settings? I see this annoying thing very often, if only I could set a time for it to stop automatically (eg --stop-time=99999999999 )