[Bug]: `shopify theme console` returns nil for any command I enter, when it should still work
Please confirm that you have:
- [X] 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.)
- [X] Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
- run
shopify theme console --url /product/xyz - activate the console in browser
- go back to CLI and type
productto view the product data structure - console returns the product data structure
Actual behavior
- run
shopify theme console --url /product/xyz - activate the console in browser
- go back to CLI and type
productto view the product data structure - console returns
nil
Verbose output
2024-04-03T15:51:25.742Z: Running command theme console
shopify:theme:console init version: @oclif/[email protected] argv: [ '--url', '/products/magnetic-socket-holder', '--verbose' ] +0ms
2024-04-03T15:51:25.778Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-04-03T15:51:25.779Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store olsatools-dev.myshopify.com:
[]
2024-04-03T15:51:25.780Z: Getting session store...
2024-04-03T15:51:25.782Z: 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": "olsatools-dev.myshopify.com"
}
}
2024-04-03T15:51:25.783Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-04-03T15:51:25.783Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.057Z: Request to https://accounts.shopify.com/oauth/introspection completed in 261 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/"51e182f7a9ea316ad49d2fc4cbad36c2"
- x-request-id: 2aa35425-791d-4098-9072-4d2e9516aaeb-1712159486
2024-04-03T15:51:26.060Z: The identity token is valid: true
2024-04-03T15:51:26.061Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false
2024-04-03T15:51:26.061Z: The current session is valid but needs refresh. Refreshing...
2024-04-03T15:51:26.061Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI7_W1sAYQj662sAZSJggBEhAi4ByxYu9A6IX5MSAbXSC6GhAAY33ic5xN7aExHWpzbpIrEkDea0SJ3oDgfkjR-J63HwCt4rK5WOk6jLV-wlNry3F3VbSRWv1m53ZTuUeCqR7-oZFuqnV_f-eOWKCaGp8cahQN&refresh_token=atkn_CiEI7_W1sAYQ74_UsQaiARIKEABjfeJznE3toTEdanNukisSQCOg6fDOI3z96othGWl6Z-_AFZu9RN99AWMwF2QSTNa5ZdA0mzLfHxlPc5BOZ5B5zbRsb3XGB8TtX90QKMln8wQ&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.338Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI7_W1sAYQj662sAZSJggBEhAi4ByxYu9A6IX5MSAbXSC6GhAAY33ic5xN7aExHWpzbpIrEkDea0SJ3oDgfkjR-J63HwCt4rK5WOk6jLV-wlNry3F3VbSRWv1m53ZTuUeCqR7-oZFuqnV_f-eOWKCaGp8cahQN&refresh_token=atkn_CiEI7_W1sAYQ74_UsQaiARIKEABjfeJznE3toTEdanNukisSQCOg6fDOI3z96othGWl6Z-_AFZu9RN99AWMwF2QSTNa5ZdA0mzLfHxlPc5BOZ5B5zbRsb3XGB8TtX90QKMln8wQ&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 275 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/"31649ae737e80c720eef9c3277d663d7"
- x-request-id: 2cdedf73-7f4d-4ab4-8f15-0a72f29badc2-1712159486
2024-04-03T15:51:26.341Z: 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.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.341Z: 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.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.341Z: 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.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.341Z: 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%2Folsatools-dev.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.597Z: 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 254 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/"0ebf2e614a32561dcfa19d0f78530062"
- x-request-id: 797b4857-04cd-4278-9c2a-656f8992904b-1712159486
2024-04-03T15:51:26.604Z: 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 261 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/"79f5f5fec93da68d7aebc0f014c87677"
- x-request-id: 585f3544-5704-457e-a36b-36c491b7a458-1712159486
2024-04-03T15:51:26.611Z: 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%2Folsatools-dev.myshopify.com%2Fadmin completed in 267 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/"e6fac9543e75e3602abf1818af8189eb"
- x-request-id: 8d6f6491-3fc0-45b1-8b84-ddcb589040c7-1712159486
2024-04-03T15:51:26.614Z: 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 272 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/"1dd5f3f495de273a8b0985ea060fb4f1"
- x-request-id: 352085ba-8071-4b33-b7f0-69685bba3e2c-1712159486
2024-04-03T15:51:26.615Z: Setting session store...
2024-04-03T15:51:26.637Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2024-04-03T15:51:26.637Z: Getting session store...
2024-04-03T15:51:26.638Z: 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-04-03T15:51:26.638Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-04-03T15:51:26.638Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.58.1
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: darwin
- Content-Type: application/json
2024-04-03T15:51:26.870Z: Request to https://accounts.shopify.com/oauth/introspection completed in 230 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/"19625e9234e31296781f726ec42079da"
- x-request-id: 5fb80fea-69a6-460e-8911-23ffee4fc4c7-1712159486
2024-04-03T15:51:26.871Z: The identity token is valid: true
2024-04-03T15:51:26.871Z:
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-04-03T15:51:26.902Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/ruby -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-04-03T15:51:26.914Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-04-03T15:51:27.079Z: Reading the content of file at /usr/local/Cellar/shopify-cli/3.58.1/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-04-03T15:51:27.082Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle install
· Working directory: /usr/local/Cellar/shopify-cli/3.58.1/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby
2024-04-03T15:51:27.408Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle exec /usr/local/opt/ruby/bin/ruby /usr/local/Cellar/shopify-cli/3.58.1/libexec/lib/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme console --url /products/magnetic-socket-holder --port 9293 --theme liquid-console-repl-3.58.1
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
/usr/local/Cellar/shopify-cli/3.58.1/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.
/usr/local/Cellar/shopify-cli/3.58.1/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.
/usr/local/Cellar/shopify-cli/3.58.1/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://olsatools-dev.myshopify.com/admin/api/unstable/themes.json with request_id: dc7cfe13-b0c8-4e44-bb06-1b07b2adc24c-1712159488
[2024-04-03 09:51:28] INFO WEBrick 1.7.0
[2024-04-03 09:51:28] INFO ruby 3.3.0 (2023-12-25) [x86_64-darwin23]
[2024-04-03 09:51:28] INFO WEBrick::HTTPServer#start: pid=47221 port=9293
DEBUG Refreshing preview _secure_session_id cookie
DEBUG Proxying HEAD https://olsatools-dev.myshopify.com/?preview_theme_id=135569735868&_fd=0&pb=0
DEBUG `-> 302 request_id: a59cfcca-d8a5-4e4d-9737-356f775d9421-1712159489
DEBUG Proxying GET https://olsatools-dev.myshopify.com/?preview_theme_id=135569735868&_fd=0&pb=0
DEBUG `-> 302 request_id: f719f4e0-f298-4d87-b4c5-33fc6f830e00-1712159489
DEBUG Proxying GET https://olsatools-dev.myshopify.com/?_fd=0&pb=0
DEBUG `-> 200 request_id: e649ad8d-16fd-4598-b1da-c59af83a770c-1712159490
DEBUG New _secure_session_id cookie from response
[2024-04-03 09:51:31] INFO going to shutdown ...
[2024-04-03 09:51:31] INFO WEBrick::HTTPServer#start done.
Welcome to Shopify Liquid console
(press Ctrl + C to exit)
> product
DEBUG Evaluating result
DEBUG URI: https://olsatools-dev.myshopify.com/products/magnetic-socket-holder?section_id=announcement-bar&_fd=0&pb=0
---
HTTP status: 200
---
Response body:
<div id="shopify-section-announcement-bar" class="shopify-section announcement-bar-section"><link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slideshow.css?v=107725913939919748051697492941" rel="stylesheet" type="text/css" media="all" />
<link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slider.css?v=114212096148022386971697492940" rel="stylesheet" type="text/css" media="all" />
<div
class="utility-bar color-accent-1 gradient"
>
<div class="page-width utility-bar__grid"><div class="localization-wrapper">
</div>
</div>
</div>
</div>
DEBUG Evaluating context
DEBUG URI: https://olsatools-dev.myshopify.com/products/magnetic-socket-holder?section_id=announcement-bar&_fd=0&pb=0
---
HTTP status: 200
---
Response body:
<div id="shopify-section-announcement-bar" class="shopify-section announcement-bar-section"><link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slideshow.css?v=107725913939919748051697492941" rel="stylesheet" type="text/css" media="all" />
<link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slider.css?v=114212096148022386971697492940" rel="stylesheet" type="text/css" media="all" />
<div
class="utility-bar color-accent-1 gradient"
>
<div class="page-width utility-bar__grid"><div class="localization-wrapper">
</div>
</div>
</div>
</div>
DEBUG Evaluating assignment context
DEBUG Evaluating syntax error
DEBUG URI: https://olsatools-dev.myshopify.com/products/magnetic-socket-holder?section_id=announcement-bar&_fd=0&pb=0
---
HTTP status: 200
---
Response body:
<div id="shopify-section-announcement-bar" class="shopify-section announcement-bar-section"><link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slideshow.css?v=107725913939919748051697492941" rel="stylesheet" type="text/css" media="all" />
<link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slider.css?v=114212096148022386971697492940" rel="stylesheet" type="text/css" media="all" />
<div
class="utility-bar color-accent-1 gradient"
>
<div class="page-width utility-bar__grid"><div class="localization-wrapper">
</div>
</div>
</div>
</div>
DEBUG URI: https://olsatools-dev.myshopify.com/products/magnetic-socket-holder?section_id=announcement-bar&_fd=0&pb=0
---
HTTP status: 200
---
Response body:
<div id="shopify-section-announcement-bar" class="shopify-section announcement-bar-section"><link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slideshow.css?v=107725913939919748051697492941" rel="stylesheet" type="text/css" media="all" />
<link href="//cdn.shopify.com/s/files/1/0531/3459/0140/t/21/assets/component-slider.css?v=114212096148022386971697492940" rel="stylesheet" type="text/css" media="all" />
<div
class="utility-bar color-accent-1 gradient"
>
<div class="page-width utility-bar__grid"><div class="localization-wrapper">
</div>
</div>
</div>
</div>
nil
### Reproduction steps
1. run `shopify theme console --url /product/xyz`
2. activate the console in browser
3. go back to CLI and type `product` to view the product data structure
4. console returns `nil`
### Operating System
Mac OS Ventura
### Shopify CLI version (check your project's `package.json` if you're not sure)
Current Shopify CLI version: 3.58.1
### Shell
zsh
### Node version (run `node -v` if you're not sure)
v14.18.3
### What language and version are you using in your application?
Liquid
Same problem for me
Thank you for reporting this, @xmadscientist and @FavLucas!
The fix for this issue has been released by 3.59.1, so upgrading the CLI should resolve the problem:
Thanks for getting this fixed, @karreiro!
@karreiro now I'm getting a different error. It seems to work properly when using strictly shopify theme console as the command, but when I added parameters, I'm getting all kinds of errors. Here's the verbose output:
shopify theme console -e=us_staging --url=/products/aluminum-toolbox-emblems --port=9296 --verbose
2024-04-24T22:48:46.757Z: Running command theme console
2024-04-24T22:48:46.766Z: Reading the content of file at shopify.theme.toml...
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Using applicable flags from us_staging environment: │
│ │
│ • store: redacted.myshopify.com │
│ • password: ******** │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
2024-04-24T22:48:46.828Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
╭─ info ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Activate the Shopify Liquid console in your browser and enter your store password if prompted. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
2024-04-24T22:48:46.842Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/ruby -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-04-24T22:48:46.856Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-04-24T22:48:47.029Z: Reading the content of file at /usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-04-24T22:48:47.032Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle install
· Working directory: /usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby
2024-04-24T22:48:47.569Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle exec /usr/local/opt/ruby/bin/ruby /usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme console --url /products/aluminum-toolbox-emblems --port 9296 --theme liquid-console-repl-3.59.1
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
DEBUG GET https://theme-kit-access.shopifyapps.com/cli/admin/api/unstable/themes.json with request_id: 110f308b-edc2-4a38-bb0c-44d8093f1837-1713998928
[2024-04-24 16:48:49] INFO WEBrick 1.7.0
[2024-04-24 16:48:49] INFO ruby 3.3.1 (2024-04-23) [x86_64-darwin23]
┏━━ Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ The address "http://127.0.0.1:9296" is already in use.
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┏━━ Try this ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ Use the --port=PORT option to serve the theme in a different port.
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
~/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0 feat/emblem-wizard 1 ↵ 4281 16:48:49
$ [2024-04-24 16:48:51] INFO going to shutdown ...
[2024-04-24 16:48:51] INFO WEBrick::HTTPServer#start done.
Welcome to Shopify Liquid console
(press Ctrl + C to exit)
▽Shopify Liquid console error: Input/output error
DEBUG ["/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/reline/ansi.rb:258:in `raw'", "/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/reline/ansi.rb:258:in `cursor_pos'", "/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/reline.rb:488:in `may_req_ambiguous_char_width'", "/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/reline.rb:312:in `inner_readline'", "/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/reline.rb:288:in `readline'", "/usr/local/Cellar/ruby/3.3.1/lib/ruby/3.3.0/forwardable.rb:240:in `readline'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb:63:in `input'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb:59:in `snippet'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb:53:in `repl'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb:42:in `block in run'", "<internal:kernel>:187:in `loop'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/theme/repl.rb:42:in `run'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/project_types/theme/commands/console.rb:19:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/command/sub_command.rb:15:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/command.rb:26:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui.rb:177:in `log_output_to'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/executor.rb:16:in `block in call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/executor.rb:15:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/entry_point.rb:17:in `block in call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/monorail.rb:26:in `log'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/lib/shopify_cli/core/entry_point.rb:16:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:57:in `block (2 levels) in <main>'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:56:in `block in <main>'", "/usr/local/Cellar/shopify-cli/3.59.1/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify:66:in `<main>'"]
Hey @xmadscientist,
Thank you for sharing these logs! I've noticed that they mention port 9296 is already being used, so the shopify theme console can't start the authentication server (which allows you to authenticate in the store that will be used to run the console).
To fix this, you can either use a different port (with shopify theme console --port=9299) or terminate the other process using port 9296.
I hope this helps! :)
Oh I've tried a bunch of different, unused ports, but it still does the same thing. When I try to execute on a port, the verification step tries to open the local server site, but it redirects to my actual site while the terminal is still awaiting verification. I have to Ctrl + C the process, then run the same command. Then the proper verification window appears, but the console says that there's an error.
If you think it'll help, I'm happy to share a screen recording of the issue so you can see what's happening. It's kinda hard to describe in words lol.
On Apr 26, 2024 at 00:13:48, Guilherme Carreiro @.***> wrote:
Hey @xmadscientist https://github.com/xmadscientist,
Thank you for sharing these logs! I've noticed that they mention port 9296 is already being used, so the shopify theme console can't start the authentication server (which allows you to authenticate in the store that will be used to run the console).
To fix this, you can either use a different port (with shopify theme console --port=9299) or terminate the other process using port 9296.
I hope this helps! :)
— Reply to this email directly, view it on GitHub https://github.com/Shopify/cli/issues/3650#issuecomment-2078699617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6VNL3HGYLVCEVR27XOTRTY7HWBZAVCNFSM6AAAAABFVS43PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGY4TSNRRG4 . You are receiving this because you were mentioned.Message ID: @.***>
I'm experiencing this also - reported in 3783
reopened because not fixed
@xmadscientist can you run the command @karreiro shared with verbose logs and reshare the console output -- thank you 🙏
shopify theme console --port=9299 --verbose
@mgmanzella Here's the output:
shopify theme console --port=9299 --verbose
2024-05-02T15:53:13.694Z: Running command theme console
2024-05-02T15:53:13.733Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]
2024-05-02T15:53:13.733Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store olsatools-ca.myshopify.com:
[]
2024-05-02T15:53:13.734Z: Getting session store...
2024-05-02T15:53:13.737Z: 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": "olsatools-ca.myshopify.com"
}
}
2024-05-02T15:53:13.738Z: Sending GET request to URL https://accounts.shopify.com/.well-known/openid-configuration.json
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-02T15:53:14.128Z: Request to https://accounts.shopify.com/.well-known/openid-configuration.json completed in 377 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/"1eb4e9d462ffcdab29ed596345fa4cb0"
- x-request-id: 764840e9-f6d2-41b9-99a4-fece051efc3a-1714665194
2024-05-02T15:53:14.154Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-02T15:53:14.154Z: 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-02T15:53:14.370Z: Request to https://accounts.shopify.com/oauth/introspection completed in 213 ms
With response headers:
- cache-control: no-cache
- content-type: text/html
- x-request-id: e5a5945c-d0f3-4ea8-8b9e-65f650173a7c-1714665194
2024-05-02T15:53:14.370Z: The Introspection request failed with:
- status: 401
- www-authenticate header: "error=\"invalid_token\",error_description=\"The access token provided is expired, revoked, malformed or invalid for other reasons.\""
- body: ""
2024-05-02T15:53:14.371Z:
The validation of the token for application/identity completed with the following results:
- It's expired: true
- It's invalid in identity: true
2024-05-02T15:53:14.371Z: The current session is valid but needs refresh. Refreshing...
2024-05-02T15:53:14.371Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI0MbJsQYQ8P7JsQZSJggBEhBdBYYbqohK_pL-UX2zRTlaGhBhL1_zmExFOarcgywqk-OtEkACoKzqE_LryurOw1S9tSFlM1hEg7JdEtcKoIM021obiANy33-f2wEAYK24fCQBjCKkhoH0-NGzUF4QMMs1QgYF&refresh_token=atkn_CiEI0MbJsQYQ0ODnsgaiARIKEGEvX_OYTEU5qtyDLCqT460SQKdVfqg7skuH8_iQpPCWOctrJACR215n_wU4S8hEiiLmJFJAVVhHK2wjVBIQcQ1CXef87Np06FH92gh-JlYBqww&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-02T15:53:14.672Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI0MbJsQYQ8P7JsQZSJggBEhBdBYYbqohK_pL-UX2zRTlaGhBhL1_zmExFOarcgywqk-OtEkACoKzqE_LryurOw1S9tSFlM1hEg7JdEtcKoIM021obiANy33-f2wEAYK24fCQBjCKkhoH0-NGzUF4QMMs1QgYF&refresh_token=atkn_CiEI0MbJsQYQ0ODnsgaiARIKEGEvX_OYTEU5qtyDLCqT460SQKdVfqg7skuH8_iQpPCWOctrJACR215n_wU4S8hEiiLmJFJAVVhHK2wjVBIQcQ1CXef87Np06FH92gh-JlYBqww&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 299 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/"08ef19c256bb8dbb22cea18f0771e420"
- x-request-id: 28bf759a-fa1d-491c-8bbf-c3c9b5bd6ead-1714665194
2024-05-02T15:53:14.674Z: 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-02T15:53:14.674Z: 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-02T15:53:14.674Z: 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-02T15:53:14.674Z: 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%2Folsatools-ca.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-02T15:53:14.928Z: 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 252 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/"14bbc36c71c1c25e6f29ae4b124018a5"
- x-request-id: c7203faf-b965-4d26-aefb-83bd2655d0e0-1714665194
2024-05-02T15:53:14.934Z: 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 259 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/"593eab85351cf6fc66060abc5c0e230a"
- x-request-id: 4bb8c566-9c45-4052-95b3-dba82833c528-1714665194
2024-05-02T15:53:14.946Z: 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%2Folsatools-ca.myshopify.com%2Fadmin completed in 269 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/"252c3a64075a3fec79174dbd7dcf580c"
- x-request-id: b9a37610-0e23-42bf-b3d6-b1da91dc851f-1714665194
2024-05-02T15:53:15.007Z: 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 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/"2a597bb1660296a8b015a1919a41ff2b"
- x-request-id: 31fcdbd8-aa68-481b-8160-ebcbc5e2446b-1714665194
2024-05-02T15:53:15.008Z: Setting session store...
2024-05-02T15:53:15.033Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]
2024-05-02T15:53:15.033Z: Getting session store...
2024-05-02T15:53:15.033Z: 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-02T15:53:15.033Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-05-02T15:53:15.034Z: 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-02T15:53:15.307Z: Request to https://accounts.shopify.com/oauth/introspection completed in 272 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/"81e81e591481611e3848d95d598cc2ac"
- x-request-id: f7bbb071-cd9e-44f9-a287-5524091d0d5b-1714665195
2024-05-02T15:53:15.308Z: The identity token is valid: true
2024-05-02T15:53:15.308Z:
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-02T15:53:15.346Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/ruby -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-05-02T15:53:15.362Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle -v
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
2024-05-02T15:53:15.614Z: Reading the content of file at /usr/local/Cellar/shopify-cli/3.59.2/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/Gemfile...
2024-05-02T15:53:15.616Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle install
· Working directory: /usr/local/Cellar/shopify-cli/3.59.2/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby
2024-05-02T15:53:16.283Z:
Running system process:
· Command: /usr/local/opt/ruby/bin/bundle exec /usr/local/opt/ruby/bin/ruby /usr/local/Cellar/shopify-cli/3.59.2/libexec/lib/node_modules/@shopify/cli/dist/assets/cli-ruby/bin/shopify theme console --url / --port 9299 --theme liquid-console-repl-3.59.2
· Working directory: /Users/olsatools/Documents/Olsa Tools Site Codebase/Shopify Theme Codebase/olsa-tools-shopify-2.0
DEBUG GET https://olsatools-ca.myshopify.com/admin/api/unstable/themes.json with request_id: dbd6fab7-e03c-440f-9a22-df0a3d7aa1e2-1714665197
DEBUG POST https://olsatools-ca.myshopify.com/admin/api/unstable/themes.json with request_id: 6c36ac33-7045-4764-829e-834a1d8f4b03-1714665198
DEBUG PUT https://olsatools-ca.myshopify.com/admin/api/unstable/themes/137410216133/assets/bulk.json with request_id: 6fc3afcf-2571-4d05-a457-dc222427f52f-1714665198
[2024-05-02 09:53:19] INFO WEBrick 1.7.0
[2024-05-02 09:53:19] INFO ruby 3.3.1 (2024-04-23) [x86_64-darwin23]
[2024-05-02 09:53:19] INFO WEBrick::HTTPServer#start: pid=22364 port=9299
DEBUG Refreshing preview _shopify_essential cookie
DEBUG Proxying HEAD https://olsatools-ca.myshopify.com/?preview_theme_id=137410216133&_fd=0&pb=0
DEBUG `-> 302 request_id: 4693becc-3886-4294-b189-04b5f443a883-1714665200
DEBUG Proxying GET https://olsatools-ca.myshopify.com/?preview_theme_id=137410216133&_fd=0&pb=0
DEBUG `-> 302 request_id: 8a39fc23-a821-494d-b3b3-701ad2d77f5e-1714665200
DEBUG Proxying GET https://olsatools-ca.myshopify.com/password?_fd=0&pb=0
DEBUG `-> 302 request_id: 1438ed88-357f-4e9b-a39b-5bae52eaa391-1714665200
👋 thanks for sharing your console output, it looks like your auth is failing:
2024-05-02T15:53:14.370Z: The Introspection request failed with:
- status: 401
- www-authenticate header: "error=\"invalid_token\",error_description=\"The access token provided is expired, revoked, malformed or invalid for other reasons.\""
- body: ""
2024-05-02T15:53:14.371Z:
The validation of the token for application/identity completed with the following results:
- It's expired: true
- It's invalid in identity: true
can you try the following:
shopify auth logout # this will log you out
shopify theme console --port=9299 --verbose. # this will trigger login again, you should get a working token
let us know if it's still broken and then share your console output again if it is. if you're no longer getting the original error you posted re: "input/output error" and auth is not completing, you're right that it's probably the same bug as here. in that scenario pass in a development store and see if that workaround works:
shopify theme console --port=9299 --store=<YOURDEVSTORE>.myshopify.com
keep us posted and thanks for your patience as we get to the root cause 🙏
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.
closing this issue as we haven't heard back however if you're still experiencing this problem please re open with what you've tried and the current error you're seeing in --verbose logs. thanks 🙏