Closed sb18281 closed 5 months ago
👋 thanks for reporting this issue, from the steps you've listed it appears you still need to enter the store password. this is required to start up theme console
-- can you try that and let us know if you're still experiencing this issue? thank you!
Hey! Thanks for the response. When it loads the auth link it's opening /password
but then immediately redirecting home (I think the browser is already authenticated). Have screen recorded what I'm seeing here.
https://github.com/Shopify/cli/assets/2426010/3453e0c4-c18a-443e-b8da-f478d811cb70
👋 appreciate you sharing a video! i see what you mean about auth not acting as expected, when did you start experiencing this behavior?
while we look into the root cause, im wondering how we can unblock you. can you try these workarounds:
shopify auth logout
and then re run the console command shopify theme console
with a different store, authenticate, see if theme console starts up. then switch back to using theme console with drinktinto.com let us know if any of these work (and about any other workarounds you've tried), it also gives us more information about the nature of this bug 🙏
I first noticed it I think with the prior version when I was trying to test the console command - I don't use it too often but it didn't work at all which is when I saw the other issue. Went back to test it once I saw that was resolved in the latest release.
It's not a major issue for me - not critical to workflow currently - more just a nice to have. I did try some of the steps you mentioned:
shopify auth logout
followed by shopify theme console --store
made no differenceInterestingly the only way I can get a different result is if I run it, cancel it, leaving the hanging process, then try run it again and - when the ports clash because of the already existing process it seems to make it further.
Have attached log output from that run + screen record too.
https://github.com/Shopify/cli/assets/2426010/5f49fc81-c6eb-4c8b-bf40-99d97344e2ec
:wave: Hey @sb18281,
Thanks a lot for reporting this and for including the screen recordings. The 3.59.2 release solves a broader issue in the shopify theme console
. It's very likely it will solve this issue as well.
Could you please confirm if upgrading to 3.59.2 also solves the scenario you're facing?
Thank you!
Hey @karreiro - thanks for checking in!
Unfortunately no change for me - it still attempts to hit /password
and redirects to the homepage and hangs there as before.
👋 hi @sb18281 -- we're not seeing other reports of this issue, im now wondering if this is an auth issue with your account. especially since in the verbose logs we're only seeing 302s and never a 200 when proxying requests:
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://tinto-amorio.myshopify.com/?preview_theme_id=167849787703&_fd=0&pb=0
DEBUG `-> 302 request_id: e72c1308-f5be-4842-adc6-cbc075485c83-1713911278
DEBUG Proxying GET https://tinto-amorio.myshopify.com/?preview_theme_id=167849787703&_fd=0&pb=0
DEBUG `-> 302 request_id: fc94ce0d-0b51-4969-9205-caed9a7a3ab5-1713911278
DEBUG Proxying GET https://tinto-amorio.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: 2b758035-47f6-4ff3-ba20-633b4d4ddccd-1713911279
do you have another account on hand and a store that you're an owner of ?? (so not a collaborator like tinto-amorio). just trying to isolate where this issue is happening, thank you 🙏
@mgmanzella I'm actually experiencing the exact same issue here. I'm also trying to run it on a password-protected store.
I reported it on my last post in #3650
thanks for reporting @xmadscientist ! your log output is a bit different, even though you're experiencing the same result the root cause appears to be different (and not related to auth). let's stay your original issue, ill reopen it 🙏
Thanks @mgmanzella for trying to narrow this down!
Tried with one where my only access is via staff (same account/email though) - no luck unfortunately. But, running on a dev store (that I'm the owner of) did the trick - bit tricky to compare potentially given that the dev store has a password page and isn't live.
One thing to callout that I just noticed - and potentially related to some other issues I've seen partners flag. Is when it worked for the dev store it clicked that the repl template was different as the password page was unstyled. Re-running with store tinto-amorio
I let it redirect to the homepage as normal and checked the browser console theme by running Shopify.theme
in inspector to see what the active theme was and it does not match:
REPL Theme (Originally navigated to from the cli): 168043544887
Theme that was redirected to in the browser: 133872222442
(Production/live theme)
I think this is potentially related to issues I've seen other partners raise within Slack where shopify theme dev
was proxying the live theme instead of their development theme - something I've encountered myself - at least it's presenting itself in the same way.
Hope this provides some insight into what might be happening! Thanks for the callout around running on an owned theme - if not for the dev store styling changing I wouldn't have thought to check the theme ids against what it's opening.
Staff Account
2024-05-01T21:11:05.708Z: Running command theme console
2024-05-01T21:11:05.718Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-05-01T21:11:05.718Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store wise-angler-nz.myshopify.com:
[]
2024-05-01T21:11:05.719Z: Getting session store...
2024-05-01T21:11:05.720Z: 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": "wise-angler-nz.myshopify.com"
}
}
2024-05-01T21:11:05.720Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:11:05.720Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.139Z: Request to https://accounts.shopify.com/oauth/introspection completed in 413 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/"28db2ac414dcfbe2ac991264a940b875"
- x-request-id: fda2741d-f7f1-4bb7-91a1-f7e8fea7e347-1714597866
2024-05-01T21:11:06.142Z: The identity token is valid: true
2024-05-01T21:11:06.143Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2024-05-01T21:11:06.143Z: The current session is valid but needs refresh. Refreshing...
2024-05-01T21:11:06.143Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI29_KsQYQ-5fLsQZSJggBEhD0Ay1VCvBG7ZEFD27chuRRGhAIFCT4bclFzaY4cyWZETIHEkCaSX1jUhmHlc8f7Er94D8c5DbHhFkgXzGFNQtqenlaez77x6eevLh8yC0HBfCbCiBzcUsfT8C7ntnuerkcA3oL&refresh_token=atkn_CiEI29_KsQYQ2_nosgaiARIKEAgUJPhtyUXNpjhzJZkRMgcSQI3kROpHsCIh_ybSRxcPeOnK_efBDxnzn4Onop6fxJZROqWJH_16YmlGXuQmF6ocza6EQ8IBahOIzhDxOIdekwc&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.481Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI29_KsQYQ-5fLsQZSJggBEhD0Ay1VCvBG7ZEFD27chuRRGhAIFCT4bclFzaY4cyWZETIHEkCaSX1jUhmHlc8f7Er94D8c5DbHhFkgXzGFNQtqenlaez77x6eevLh8yC0HBfCbCiBzcUsfT8C7ntnuerkcA3oL&refresh_token=atkn_CiEI29_KsQYQ2_nosgaiARIKEAgUJPhtyUXNpjhzJZkRMgcSQI3kROpHsCIh_ybSRxcPeOnK_efBDxnzn4Onop6fxJZROqWJH_16YmlGXuQmF6ocza6EQ8IBahOIzhDxOIdekwc&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 337 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/"f8f1c11c5d5a34c99ed70027a57002a9"
- x-request-id: 5bdec6de-93df-4eda-af3a-2e83053711ab-1714597866
2024-05-01T21:11:06.483Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.483Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.483Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.483Z: 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%2Fwise-angler-nz.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:06.772Z: 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 287 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/"57af9cd872716c0164604db606cb3898"
- x-request-id: a6c73faf-3045-48da-87c7-2e9d935bd49e-1714597866
2024-05-01T21:11:06.831Z: 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 346 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/"db45ce298a9f8ff618a7b94258424f76"
- x-request-id: 8d6ed2cc-0f7f-4916-99c5-15a6fa271506-1714597866
2024-05-01T21:11:06.832Z: 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%2Fwise-angler-nz.myshopify.com%2Fadmin completed in 347 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/"2bf47abab9e5e64e03be3db0409060d7"
- x-request-id: 6e964549-296d-481b-a6bb-d94657ef1565-1714597866
2024-05-01T21:11:06.834Z: 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 350 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/"af03ecf37649486ce2b1f45c72e49d43"
- x-request-id: 94ee5cdc-0435-430c-9633-695a3478c569-1714597866
2024-05-01T21:11:06.836Z: Setting session store...
2024-05-01T21:11:06.840Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2024-05-01T21:11:06.840Z: Getting session store...
2024-05-01T21:11:06.841Z: 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-05-01T21:11:06.841Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:11:06.841Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:11:07.129Z: Request to https://accounts.shopify.com/oauth/introspection completed in 287 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/"0ed8d83558db69975c1933f253a5633b"
- x-request-id: 2117b583-d67e-4350-a8a1-7da65c862c9c-1714597867
2024-05-01T21:11:07.131Z: The identity token is valid: true
2024-05-01T21:11:07.131Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Activate the Shopify Liquid console in your browser and enter your store password if prompted. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
2024-05-01T21:11:07.173Z:
Running system process:
· Command: ruby -v
· Working directory: /Users/simonbarnes
2024-05-01T21:11:07.202Z:
Running system process:
· Command: bundle -v
· Working directory: /Users/simonbarnes
2024-05-01T21:11:07.302Z: Reading the content of file at Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-05-01T21:11:07.303Z:
Running system process:
· Command: bundle install
· Working directory: /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby
2024-05-01T21:11:07.578Z:
Running system process:
· Command: bundle exec ruby /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme console --url / --port 9293 --theme liquid-console-repl-3.59.2
· Working directory: /Users/simonbarnes
DEBUG GET https://wise-angler-nz.myshopify.com/admin/api/unstable/themes.json with request_id: 6ad27ea8-e281-45e7-bc65-78cb37244c6b-1714597868
DEBUG POST https://wise-angler-nz.myshopify.com/admin/api/unstable/themes.json with request_id: 462b46ce-0839-40db-885a-c006e9545fe6-1714597868
DEBUG PUT https://wise-angler-nz.myshopify.com/admin/api/unstable/themes/163632546069/assets/bulk.json with request_id: 85078bfc-91ad-4b09-85a8-f0f3e5e7f843-1714597869
[2024-05-02 09:11:10] INFO WEBrick 1.7.0
[2024-05-02 09:11:10] INFO ruby 3.2.3 (2024-01-18) [arm64-darwin23]
[2024-05-02 09:11:10] INFO WEBrick::HTTPServer#start: pid=88688 port=9293
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://wise-angler-nz.myshopify.com/?preview_theme_id=163632546069&_fd=0&pb=0
DEBUG `-> 302 request_id: c222a57e-c41c-4608-8ef8-40f72f408c4e-1714597870
DEBUG Proxying GET https://wise-angler-nz.myshopify.com/?preview_theme_id=163632546069&_fd=0&pb=0
DEBUG `-> 302 request_id: 67593627-8057-4407-b2d3-935af330830a-1714597871
DEBUG Proxying GET https://wise-angler-nz.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: e766f93a-be84-4f4d-a7bd-87a7ba0b5e5f-1714597871
Dev Store
2024-05-01T21:21:32.061Z: Running command theme console
2024-05-01T21:21:32.076Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-05-01T21:21:32.076Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store bunker-nz.myshopify.com:
[]
2024-05-01T21:21:32.077Z: Getting session store...
2024-05-01T21:21:32.078Z: 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": "bunker-nz.myshopify.com"
}
}
2024-05-01T21:21:32.078Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:21:32.078Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:32.445Z: Request to https://accounts.shopify.com/oauth/introspection completed in 360 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/"127f8bab5b2d4fd1882e1eeb3e20bac7"
- x-request-id: 5e10e300-fcef-4fa6-a34d-10b5a936d988-1714598492
2024-05-01T21:21:32.449Z: The identity token is valid: true
2024-05-01T21:21:32.449Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2024-05-01T21:21:32.449Z: The current session is valid but needs refresh. Refreshing...
2024-05-01T21:21:32.450Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIyuTKsQYQ6pzLsQZSJggBEhA5j0ZBqVtA5JUSpuNuAZFYGhC3NrOWFbJEgKHlUGGY2RqaEkDjtYMvcXPqPGUgesttrtfvM61NS8Gdp-ASF51xAzXtPNlOo-Hq0gjFTpS-4P77YPYzpYqMkbutnusK_IcROb8C&refresh_token=atkn_CiEIyuTKsQYQyv7osgaiARIKELc2s5YVskSAoeVQYZjZGpoSQNlL9RTmVadvsaZQQKhYL-3soBtXZvzlxpDBaJn94fo8Egqjp6OpTNqC79AP99O2w1zaAractY2rwe16nU7VDQo&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:32.787Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIyuTKsQYQ6pzLsQZSJggBEhA5j0ZBqVtA5JUSpuNuAZFYGhC3NrOWFbJEgKHlUGGY2RqaEkDjtYMvcXPqPGUgesttrtfvM61NS8Gdp-ASF51xAzXtPNlOo-Hq0gjFTpS-4P77YPYzpYqMkbutnusK_IcROb8C&refresh_token=atkn_CiEIyuTKsQYQyv7osgaiARIKELc2s5YVskSAoeVQYZjZGpoSQNlL9RTmVadvsaZQQKhYL-3soBtXZvzlxpDBaJn94fo8Egqjp6OpTNqC79AP99O2w1zaAractY2rwe16nU7VDQo&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 336 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/"f35c5a3245030ff44e99042c2f4861e7"
- x-request-id: 6bfa14a3-6e01-4939-a0df-6af7e0e7f95b-1714598492
2024-05-01T21:21:32.789Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:32.789Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:32.789Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:32.790Z: 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%2Fbunker-nz.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:33.085Z: 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 293 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/"1bc1151cb71ee78b2c24f059e681ea50"
- x-request-id: 237662d1-f1bb-450e-8415-fd7f93c7d15e-1714598493
2024-05-01T21:21:33.092Z: 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 301 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/"67039c08c584c89605e55d88c592be39"
- x-request-id: a566891e-9149-4ad9-998a-2ba0cc55c7d1-1714598493
2024-05-01T21:21:33.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=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 317 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/"72d54b0425836e965e6f8f974887530c"
- x-request-id: a30d9c8f-c912-4f2b-873b-49cf85b52500-1714598493
2024-05-01T21:21:33.123Z: 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%2Fbunker-nz.myshopify.com%2Fadmin completed in 331 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/"7c49af766a1e174e952e5e324b1e810f"
- x-request-id: 824a5c1b-853f-4c05-9214-0d6d83e3cd42-1714598493
2024-05-01T21:21:33.126Z: Setting session store...
2024-05-01T21:21:33.135Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2024-05-01T21:21:33.135Z: Getting session store...
2024-05-01T21:21:33.136Z: 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-05-01T21:21:33.136Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:21:33.136Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:21:33.459Z: Request to https://accounts.shopify.com/oauth/introspection completed in 322 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/"476d0d8d9a98f2724fa39b92f0bf2dd9"
- x-request-id: a7fdce5d-d57d-4347-b042-f33c0f50a43e-1714598493
2024-05-01T21:21:33.460Z: The identity token is valid: true
2024-05-01T21:21:33.460Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Activate the Shopify Liquid console in your browser and enter your store password if prompted. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
2024-05-01T21:21:33.482Z:
Running system process:
· Command: ruby -v
· Working directory: /Users/simonbarnes
2024-05-01T21:21:33.497Z:
Running system process:
· Command: bundle -v
· Working directory: /Users/simonbarnes
2024-05-01T21:21:33.603Z: Reading the content of file at Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-05-01T21:21:33.604Z:
Running system process:
· Command: bundle install
· Working directory: /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby
2024-05-01T21:21:33.847Z:
Running system process:
· Command: bundle exec ruby /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme console --url / --port 9293 --theme liquid-console-repl-3.59.2
· Working directory: /Users/simonbarnes
DEBUG GET https://bunker-nz.myshopify.com/admin/api/unstable/themes.json with request_id: c035798c-41f0-49b0-802e-74667ea1dd33-1714598494
DEBUG POST https://bunker-nz.myshopify.com/admin/api/unstable/themes.json with request_id: 74510dd2-0483-4587-ab9a-b529dcf3527b-1714598495
DEBUG PUT https://bunker-nz.myshopify.com/admin/api/unstable/themes/141749977339/assets/bulk.json with request_id: 2923663f-55b8-40a9-b8eb-4d2423240bd6-1714598495
[2024-05-02 09:21:36] INFO WEBrick 1.7.0
[2024-05-02 09:21:36] INFO ruby 3.2.3 (2024-01-18) [arm64-darwin23]
[2024-05-02 09:21:36] INFO WEBrick::HTTPServer#start: pid=90597 port=9293
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://bunker-nz.myshopify.com/?preview_theme_id=141749977339&_fd=0&pb=0
DEBUG `-> 302 request_id: ec041958-8cff-4ba4-a2fb-a75f0ab7fbf6-1714598496
DEBUG Proxying GET https://bunker-nz.myshopify.com/?preview_theme_id=141749977339&_fd=0&pb=0
DEBUG `-> 302 request_id: e6211063-d969-401b-a813-283af244fa73-1714598497
DEBUG Proxying GET https://bunker-nz.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 200 request_id: 471a4397-7c34-4dc1-85f2-6bdd80033149-1714598497
DEBUG New _shopify_essential cookie from response
DEBUG Proxying GET https://bunker-nz.myshopify.com/favicon.ico?preview_theme_id=141749977339&_fd=0&pb=0
DEBUG `-> 404 request_id: c2700497-1335-43c9-bf63-402e570004bc-1714598498
DEBUG Proxying POST https://bunker-nz.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: fc0b608e-ca55-4954-a55e-46d0e7b5a207-1714598511
DEBUG Proxying GET https://bunker-nz.myshopify.com/?preview_theme_id=141749977339&_fd=0&pb=0
DEBUG `-> 302 request_id: 1fd8fc1b-7ed8-49a5-8848-ac53424a2a12-1714598511
DEBUG Proxying GET https://bunker-nz.myshopify.com/favicon.ico?_fd=0&pb=0
DEBUG `-> 404 request_id: 46fbe478-5bf6-42d0-a911-ad350940245b-1714598511
[2024-05-02 09:21:52] INFO going to shutdown ...
[2024-05-02 09:21:52] INFO WEBrick::HTTPServer#start done.
Welcome to Shopify Liquid console
(press Ctrl + C to exit)
Tinto - with redirect to live theme
2024-05-01T21:25:20.158Z: Running command theme console
2024-05-01T21:25:20.165Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-05-01T21:25:20.165Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store tinto-amorio.myshopify.com:
[]
2024-05-01T21:25:20.165Z: Getting session store...
2024-05-01T21:25:20.166Z: 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": "tinto-amorio.myshopify.com"
}
}
2024-05-01T21:25:20.166Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:25:20.167Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:20.510Z: Request to https://accounts.shopify.com/oauth/introspection completed in 337 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/"c6738c87d858724cc56f1db80b3d6f3b"
- x-request-id: 820687e0-3e44-46c8-b67c-5a9c12ea15d3-1714598720
2024-05-01T21:25:20.515Z: The identity token is valid: true
2024-05-01T21:25:20.515Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2024-05-01T21:25:20.516Z: The current session is valid but needs refresh. Refreshing...
2024-05-01T21:25:20.517Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIt-bKsQYQ157LsQZSJggBEhAf9gQxIUtNfLWwTIr7roHgGhBG4SHrFcxLA6KZicqy6MXPEkDlm_R3Ze3FqtPr-CXi-gmJDRoQ5PzBApnT1N-W4B3HZgF03fWO6hrlsVOfIC4u-F66ASM8inw5WygLhaHhuVwN&refresh_token=atkn_CiEIt-bKsQYQt4DpsgaiARIKEEbhIesVzEsDopmJyrLoxc8SQHaWXMx_onbY0Qv7kVScaznADjuZAuIwrtCEGWRSOjVW96NbTza12g_OM2STZtMk6sC-l8x2s4d7cP5mBHvxKA8&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:20.847Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIt-bKsQYQ157LsQZSJggBEhAf9gQxIUtNfLWwTIr7roHgGhBG4SHrFcxLA6KZicqy6MXPEkDlm_R3Ze3FqtPr-CXi-gmJDRoQ5PzBApnT1N-W4B3HZgF03fWO6hrlsVOfIC4u-F66ASM8inw5WygLhaHhuVwN&refresh_token=atkn_CiEIt-bKsQYQt4DpsgaiARIKEEbhIesVzEsDopmJyrLoxc8SQHaWXMx_onbY0Qv7kVScaznADjuZAuIwrtCEGWRSOjVW96NbTza12g_OM2STZtMk6sC-l8x2s4d7cP5mBHvxKA8&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 328 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/"2a6761ddf089334b456dfa4add8e19ed"
- x-request-id: e9a979ca-6176-4981-881f-4d64a8d68983-1714598720
2024-05-01T21:25:20.849Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:20.849Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:20.849Z: 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.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:20.849Z: 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%2Ftinto-amorio.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:21.148Z: 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 296 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/"e2dd1bb0ce69c8eebe3a0f9edc928a1a"
- x-request-id: ed697bd7-3955-4147-9148-7de42196ae9f-1714598721
2024-05-01T21:25:21.159Z: 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 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/"c2752100a115941f7dc5574a1f7be184"
- x-request-id: f9e41c93-1c08-48c0-83ae-360d7d55c997-1714598721
2024-05-01T21:25:21.161Z: 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%2Ftinto-amorio.myshopify.com%2Fadmin completed in 309 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/"ac05757f5fe37ed33820f103ae81dd4c"
- x-request-id: edd5c2fb-a530-444e-b394-756c34d1e2c1-1714598721
2024-05-01T21:25:21.179Z: 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 328 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/"40b82d6d989632337a512a513e55761e"
- x-request-id: a1437c40-0e69-4052-beda-6b8b54c58483-1714598721
2024-05-01T21:25:21.180Z: Setting session store...
2024-05-01T21:25:21.185Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2024-05-01T21:25:21.185Z: Getting session store...
2024-05-01T21:25:21.186Z: 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-05-01T21:25:21.186Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-01T21:25:21.186Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.59.2
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-05-01T21:25:21.463Z: Request to https://accounts.shopify.com/oauth/introspection completed in 276 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/"dcec7013eed60986a151c527b4fc380b"
- x-request-id: a63db254-f898-4636-86e3-d1c7d7f91893-1714598721
2024-05-01T21:25:21.465Z: The identity token is valid: true
2024-05-01T21:25:21.465Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
╭─ info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Activate the Shopify Liquid console in your browser and enter your store password if prompted. │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
2024-05-01T21:25:21.504Z:
Running system process:
· Command: ruby -v
· Working directory: /Users/simonbarnes
2024-05-01T21:25:21.527Z:
Running system process:
· Command: bundle -v
· Working directory: /Users/simonbarnes
2024-05-01T21:25:21.647Z: Reading the content of file at Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-05-01T21:25:21.648Z:
Running system process:
· Command: bundle install
· Working directory: /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby
2024-05-01T21:25:21.877Z:
Running system process:
· Command: bundle exec ruby /Users/simonbarnes/Library/pnpm/global/5/.pnpm/@shopify+cli@3.59.2/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme console --url / --port 9293 --theme liquid-console-repl-3.59.2
· Working directory: /Users/simonbarnes
DEBUG GET https://tinto-amorio.myshopify.com/admin/api/unstable/themes.json with request_id: 37dfd095-246b-4253-8a2e-cb3ec036d680-1714598722
[2024-05-02 09:25:22] INFO WEBrick 1.7.0
[2024-05-02 09:25:22] INFO ruby 3.2.3 (2024-01-18) [arm64-darwin23]
[2024-05-02 09:25:22] INFO WEBrick::HTTPServer#start: pid=91473 port=9293
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://tinto-amorio.myshopify.com/?preview_theme_id=168043544887&_fd=0&pb=0
DEBUG `-> 302 request_id: c69be3c6-3dd7-4e9b-9bdc-71859d5a64ab-1714598723
DEBUG Proxying GET https://tinto-amorio.myshopify.com/?preview_theme_id=168043544887&_fd=0&pb=0
DEBUG `-> 302 request_id: bc1e4734-4c85-4de1-9372-187fa7b5c8e5-1714598723
DEBUG Proxying GET https://tinto-amorio.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: f78fe054-cb22-4493-883f-542e880a4f24-1714598723
running with store tinto-amorio I let it redirect to the homepage as normal and checked the browser console theme by running Shopify.theme in inspector to see what the active theme was and it does not match:
REPL Theme (Originally navigated to from the cli): 168043544887 Theme that was redirected to in the browser: 133872222442 (Production/live theme)
great catch ty! we'll take a look, thanks again for the extra details 🙏
👋 Hey @sb18281,
Thank you for sharing those logs and details!
I was able to reproduce this scenario on the CLI 3.59.2
, but I'm no longer able to reproduce it on the CLI 3.60.1
-- confirming the fix we shipped on 3.60.0
was effective.
Thus, I am closing this issue. Thanks again for contributing with all valuable context!
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
Running
shopify theme console
on a store should open the localhost url to auth the console and then close itself before making the console input available to query liquid objectsActual behavior
The localhost url redirected to the homepage of the store and sat there. Exiting the process with
ctrl + c
also seems to leave the ruby process hanging.Verbose output
Reproduction steps
shopify theme list --store=URL
to set the store to work with for subsequent cli commandsshopify theme console
Operating System
Mac OS Sonoma
Shopify CLI version (check your project's
package.json
if you're not sure)3.59.1
Shell
zsh
Node version (run
node -v
if you're not sure)v20.11.1
What language and version are you using in your application?
Ruby 3.2.3