Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: profile command not working on Windows on WSL #5414

Open
2 tasks done
djordje-st opened this issue Feb 18, 2025 · 4 comments
Open
2 tasks done

[Bug]: profile command not working on Windows on WSL #5414

djordje-st opened this issue Feb 18, 2025 · 4 comments
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 3 Normal Severity Type: Bug Something isn't working

Comments

@djordje-st
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

A generated report should open in a new browser window (like it does on MacOS).

Actual behavior

Nothing happens after the command completes

Verbose output

Verbose output
2025-02-18T08:36:11.053Z: Running command theme profile
2025-02-18T08:36:11.059Z: Notifications to show: 0
2025-02-18T08:36:11.067Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2025-02-18T08:36:11.067Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store pink-gellac-development.myshopify.com:
[]

2025-02-18T08:36:11.067Z: Getting session store...
2025-02-18T08:36:11.069Z: 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",
"https://api.shopify.com/auth/organization.store-management",
"https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
"adminApi": {
  "scopes": [],
  "storeFqdn": "pink-gellac-development.myshopify.com"
}
}

2025-02-18T08:36:11.069Z: - Token validation -> It's expired: false
2025-02-18T08:36:11.069Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-18T08:36:11.070Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.281Z: Request to https://accounts.shopify.com/oauth/introspection completed in 211 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/"36271f760d40f4a4aa74d00102139dd8"
- server-timing: processing;dur=26, socket_queue;dur=1.521, edge;dur=1.035, util;dur=0.05, cfRequestDuration;dur=161.000013
- x-request-id: 31e8bebc-0a6d-4b70-876f-ad527f6a6aa1-1739867771
  
2025-02-18T08:36:11.283Z: The identity token is valid: true
2025-02-18T08:36:11.283Z: - Token validation -> It's invalid in identity: false
2025-02-18T08:36:11.283Z: The current session is valid but needs refresh. Refreshing...
2025-02-18T08:36:11.284Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI0YzRvQYQ8cTRvQZSJggBEhC0fJ556dhEZo76v79CZh24GhBMUFgplURPkbhwdy4k-9Y1EkDXnphG8mPdsZsfduj7yypt7RtCPe0O1MIAS4AA-_sCJEH9JqHDFiMGaZAplLgsIVdYz6AXmymqqGm1D7Awf1UF&refresh_token=atkn_CiEI0YzRvQYQ0abvvgaiARIKEExQWCmVRE-RuHB3LiT71jUSQPldNraKyIy9HQtbUeOToIU0DEc9_BKtEK5f6owI3cg1RwISeZIUR512THa_etyDafoocbJH5xhgjRuB8faSUAw&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.531Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQI0YzRvQYQ8cTRvQZSJggBEhC0fJ556dhEZo76v79CZh24GhBMUFgplURPkbhwdy4k-9Y1EkDXnphG8mPdsZsfduj7yypt7RtCPe0O1MIAS4AA-_sCJEH9JqHDFiMGaZAplLgsIVdYz6AXmymqqGm1D7Awf1UF&refresh_token=atkn_CiEI0YzRvQYQ0abvvgaiARIKEExQWCmVRE-RuHB3LiT71jUSQPldNraKyIy9HQtbUeOToIU0DEc9_BKtEK5f6owI3cg1RwISeZIUR512THa_etyDafoocbJH5xhgjRuB8faSUAw&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 247 ms
With response headers:
- cache-control: no-cache, no-store, private, must-revalidate, max-age=0
- content-type: application/json; charset=utf-8
- etag: W/"203c66e16f62a7b1cbaa29b0a35172ba"
- server-timing: processing;dur=70, socket_queue;dur=0.909, edge;dur=1.035, util;dur=0.25, cfRequestDuration;dur=205.999851
- x-request-id: 0755ede0-ef08-4b4a-b6e4-c7ccab6fea98-1739867771
  
2025-02-18T08:36:11.533Z: 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.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.533Z: 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.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.533Z: 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+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management&subject_token=****
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.533Z: 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%2Fpink-gellac-development.myshopify.com%2Fadmin
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.533Z: 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%2Forganization.apps.manage&subject_token=****
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

2025-02-18T08:36:11.767Z: 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 235 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/"d9ce5dce7e86b1ddd5f814c16f22fdb0"
- server-timing: processing;dur=38, socket_queue;dur=1.717, edge;dur=1.034, util;dur=0.25, cfRequestDuration;dur=190.000057
- x-request-id: 86ddfe1f-8e47-4081-969c-9667a63062c8-1739867771
  
2025-02-18T08:36:11.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=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management&subject_token=**** completed in 239 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/"07fabd0094c734391ca2956230bed12c"
- server-timing: processing;dur=39, socket_queue;dur=0.913, edge;dur=1.031, util;dur=0.1, cfRequestDuration;dur=181.999922
- x-request-id: 6cafa0db-09d2-4969-9873-f843808fe157-1739867771
  
2025-02-18T08:36:11.774Z: 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%2Fpink-gellac-development.myshopify.com%2Fadmin completed in 241 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/"cc4cda697ea55522b85920cc5dc70228"
- server-timing: processing;dur=43, socket_queue;dur=1.999, edge;dur=0.038, util;dur=0.2, cfRequestDuration;dur=184.000015
- x-request-id: d6749538-e834-4a7b-b50e-ce8577458e23-1739867771
  
2025-02-18T08:36:11.796Z: 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 263 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/"bf278988b0fd2d1c8b7961523bc110d0"
- server-timing: processing;dur=36, socket_queue;dur=1.023, edge;dur=1.034, util;dur=0.0, cfRequestDuration;dur=214.000225
- x-request-id: 41296730-9d6c-4d6b-b83c-bbf963ad9bb2-1739867771
  
2025-02-18T08:36:11.800Z: 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%2Forganization.apps.manage&subject_token=**** 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/"78d437755d5bea1a6bb719d92b5a66bb"
- server-timing: processing;dur=35, socket_queue;dur=1.178, edge;dur=2.035, util;dur=0.05, cfRequestDuration;dur=194.999933
- x-request-id: cac7938e-09f2-42d0-a663-5950ae122650-1739867771
  
2025-02-18T08:36:11.801Z: Setting session store...
2025-02-18T08:36:11.807Z: Sending "Admin" GraphQL request:
query publicApiVersions {
publicApiVersions {
  handle
  supported
  __typename
}
}

With variables:
{}

With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

to https://pink-gellac-development.myshopify.com/admin/api/unstable/graphql.json
2025-02-18T08:36:12.180Z: Request to https://pink-gellac-development.myshopify.com/admin/api/unstable/graphql.json completed in 373 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=271, graphql;desc="admin/query/other", cfRequestDuration;dur=322.000027
- x-request-id: c79f0b98-4c88-47ef-a899-99191882673e-1739867771
  
2025-02-18T08:36:12.181Z: Sending "Admin" GraphQL request:
query getThemes($after: String) {
themes(first: 50, after: $after) {
  nodes {
    id
    name
    role
    processing
    __typename
  }
  pageInfo {
    hasNextPage
    endCursor
    __typename
  }
  __typename
}
}

With variables:
{
"after": null
}

With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json

to https://pink-gellac-development.myshopify.com/admin/api/2025-01/graphql.json
2025-02-18T08:36:12.404Z: Request to https://pink-gellac-development.myshopify.com/admin/api/2025-01/graphql.json completed in 224 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=126, graphql;desc="admin/query/other", cfRequestDuration;dur=180.999994
- x-request-id: 56511241-8590-415f-9a2c-21f890d36b82-1739867772
  
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:12.428Z: Sending "Admin" GraphQL request:
query OnlineStorePasswordProtection {
onlineStore {
  passwordProtection {
    enabled
    __typename
  }
  __typename
}
}

With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
- Content-Type: application/json
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:12.617Z: Request to https://pink-gellac-development.myshopify.com/admin/api/2025-01/graphql.json completed in 189 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=97, graphql;desc="admin/query/other", cfRequestDuration;dur=145.999908
- x-request-id: cd46a156-0367-4dd9-88c2-14df09b16838-1739867772
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:12.737Z: Request to https://pink-gellac-development.myshopify.com/password completed in 119 ms
With response headers:
- content-type: text/html; charset=utf-8
- server-timing: processing;dur=12, db;dur=3, db_async;dur=1.62, asn;desc="31042", edge;desc="BEG", country;desc="RS", pageType;desc="password", servedBy;desc="sfsk", requestID;desc="e49020a3-42a3-44f5-a22e-ac1124f267a5-1739867772", cfRequestDuration;dur=77.999830
- x-request-id: e49020a3-42a3-44f5-a22e-ac1124f267a5-1739867772
  
2025-02-18T08:36:12.738Z: Setting storefront password for shop pink-gellac-development.myshopify.com...
2025-02-18T08:36:12.742Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2025-02-18T08:36:12.742Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store pink-gellac-development.myshopify.com:
[]

2025-02-18T08:36:12.742Z: Getting session store...
2025-02-18T08:36:12.743Z: 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",
"https://api.shopify.com/auth/organization.store-management",
"https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
"adminApi": {
  "scopes": [],
  "storeFqdn": "pink-gellac-development.myshopify.com"
}
}

2025-02-18T08:36:12.743Z: - Token validation -> It's expired: false
2025-02-18T08:36:12.743Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-18T08:36:12.743Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:12.955Z: Request to https://accounts.shopify.com/oauth/introspection completed in 211 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/"f6336e92dbbaac2560444021a64481cc"
- server-timing: processing;dur=24, socket_queue;dur=1.883, edge;dur=0.041, util;dur=0.15, cfRequestDuration;dur=171.000004
- x-request-id: 8e829b0a-69f0-4502-ac0a-3526c6819275-1739867772
  
2025-02-18T08:36:12.955Z: The identity token is valid: true
2025-02-18T08:36:12.955Z: - Token validation -> It's invalid in identity: false
2025-02-18T08:36:12.956Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2025-02-18T08:36:12.956Z: Getting session store...
2025-02-18T08:36:12.956Z: 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",
"https://api.shopify.com/auth/organization.store-management",
"https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
"storefrontRendererApi": {
  "scopes": []
}
}

2025-02-18T08:36:12.956Z: - Token validation -> It's expired: false
2025-02-18T08:36:12.956Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-18T08:36:12.956Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
- User-Agent: Shopify CLI; v=3.75.3
- Keep-Alive: timeout=30
- Sec-CH-UA-PLATFORM: linux
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:13.159Z: Request to https://accounts.shopify.com/oauth/introspection completed in 202 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/"f6336e92dbbaac2560444021a64481cc"
- server-timing: processing;dur=24, socket_queue;dur=1.293, edge;dur=1.041, util;dur=0.05, cfRequestDuration;dur=163.000107
- x-request-id: ce2b04ad-1282-4b29-86bf-20478909b0d5-1739867772
  
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:13.231Z: Request to https://pink-gellac-development.myshopify.com/?preview_theme_id=123110031414&_fd=0&pb=0 completed in 71 ms
With response headers:
- content-type: text/html; charset=utf-8
- server-timing: processing;dur=14;desc="gc:1", db;dur=4, db_async;dur=1.681, asn;desc="31042", edge;desc="BEG", country;desc="RS", theme;desc="123110031414", pageType;desc="index", servedBy;desc="ctvf", requestID;desc="13e7b41a-6c99-41f5-814c-ba2d0acd3bf4-1739867773", cfRequestDuration;dur=59.000015
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:13.333Z: Request to https://pink-gellac-development.myshopify.com/password completed in 101 ms
With response headers:
- content-type: text/html; charset=utf-8
- server-timing: processing;dur=11, db;dur=4, db_async;dur=1.57, asn;desc="31042", edge;desc="BEG", country;desc="RS", pageType;desc="password", servedBy;desc="khbt", requestID;desc="d8923147-7f17-4d0a-aa78-456ad00a51e6-1739867773", cfRequestDuration;dur=58.000088
- x-request-id: d8923147-7f17-4d0a-aa78-456ad00a51e6-1739867773
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...
2025-02-18T08:36:13.931Z: Request to https://pink-gellac-development.myshopify.com/?_fd=0&pb=0 completed in 598 ms
With response headers:
- content-type: application/json
- server-timing: processing;dur=537, db;dur=94, db_async;dur=1.369, fetch;dur=147, render;dur=188, asn;desc="31042", edge;desc="BEG", country;desc="RS", theme;desc="123110031414", pageType;desc="index", servedBy;desc="mcgq", requestID;desc="6764c171-0293-442d-85f2-77b476912a2a-1739867773", cfRequestDuration;dur=581.000090
- x-request-id: 6764c171-0293-442d-85f2-77b476912a2a-1739867773
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-development.myshopify.com/ ...

2025-02-18T08:36:14.006Z: 
Running system process:
· Command: npm prefix
· Working directory: /home/djordje/code/ap/pink-gellac

2025-02-18T08:36:14.080Z: Obtaining the dependency manager in directory /home/djordje/code/ap/pink-gellac...
2025-02-18T08:36:14.334Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 175 ms
With response headers:
- x-request-id: 74c68530-9d45-4dfc-9618-0d54dd9c320f
  
2025-02-18T08:36:14.334Z: Analytics event sent: {
"command": "theme profile",
"time_start": 1739867771053,
"time_end": 1739867774002,
"total_time": 2949,
"success": true,
"cli_version": "3.75.3",
"ruby_version": "",
"node_version": "20.18.0",
"is_employee": false,
"uname": "linux amd64",
"env_ci": false,
"env_plugin_installed_any_custom": false,
"env_plugin_installed_shopify": "[\"@shopify/cli\"]",
"env_shell": "bash",
"env_device_id": "d75388679b541f01ef27831d5ad2a79d982f4cc5",
"env_cloud": "localhost",
"env_package_manager": "npm",
"env_is_global": true,
"env_auth_method": "device_auth",
"cmd_app_warning_api_key_deprecation_displayed": false,
"cmd_all_timing_network_ms": 2814,
"cmd_all_timing_prompts_ms": 0,
"cmd_all_launcher": "unknown",
"cmd_all_topic": "theme",
"cmd_all_plugin": "@shopify/theme",
"cmd_all_verbose": true,
"cmd_all_path_override": false,
"cmd_all_last_graphql_request_id": "cd46a156-0367-4dd9-88c2-14df09b16838-1739867772",
"cmd_all_timing_active_ms": 134,
"cmd_all_exit": "ok",
"user_id": "2dd9309f-bf5d-4bed-be1a-a2b6ab76bcd5",
"request_ids": [
  "c79f0b98-4c88-47ef-a899-99191882673e-1739867771",
  "56511241-8590-415f-9a2c-21f890d36b82-1739867772",
  "cd46a156-0367-4dd9-88c2-14df09b16838-1739867772"
],
"args": "--verbose",
"env_plugin_installed_all": "[\"@shopify/cli\"]",
"metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2025-02-18T08:36:14.334Z: Completed command theme profile

Reproduction steps

  1. Run shopify theme profile on any store using Windows and WSL2
  2. The command completes and nothing happens

Operating System

Windows 11

Shopify CLI version (shopify --version)

3.75.3

Shell

bash

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

v20.18.0

What language and version are you using in your application?

No response

@djordje-st djordje-st added the Type: Bug Something isn't working label Feb 18, 2025
@jamesmengo jamesmengo added Severity: 3 Normal Severity Area: @shopify/theme @shopify/theme package issues labels Feb 18, 2025
@jamesmengo
Copy link
Contributor

Hey @djordje-st! Thanks for reporting this bug.

I have a couple of ideas where this could be coming from, so I've added some instrumentation to make help me determine the root cause.

Could you please test the snapshot by installing your package globally and sharing the verbose logs again? That will help me determine a fix and hopefully get it patched for you sooner / determine a workaround :)

pnpm i -g @shopify/[email protected]

Tip

If you get an ETARGET error, install it with NPM and the flag --@shopify:registry=https://registry.npmjs.org

Caution

After installing, validate the version by running just shopify in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

@djordje-st
Copy link
Author

djordje-st commented Feb 19, 2025

@jamesmengo here's the requested output :)

Output
2025-02-19T22:03:35.402Z: Running command theme profile
2025-02-19T22:03:35.409Z: Notifications to show: 0
2025-02-19T22:03:35.417Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2025-02-19T22:03:35.417Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store pink-gellac-live.myshopify.com:
[]

2025-02-19T22:03:35.417Z: Getting session store...
2025-02-19T22:03:35.419Z: 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",
  "https://api.shopify.com/auth/organization.store-management",
  "https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "pink-gellac-live.myshopify.com"
  }
}

2025-02-19T22:03:35.419Z: - Token validation -> It's expired: false
2025-02-19T22:03:35.419Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-19T22:03:35.420Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.677Z: Request to https://accounts.shopify.com/oauth/introspection completed in 257 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/"f013662b49da7ad7680bcdf046da928c"
 - server-timing: processing;dur=31, socket_queue;dur=1.496, edge;dur=1.056, util;dur=0.05, cfRequestDuration;dur=205.999851
 - x-request-id: 05956193-58da-4819-90d7-9686acc42d13-1740002615
    
2025-02-19T22:03:35.680Z: The identity token is valid: true
2025-02-19T22:03:35.680Z: - Token validation -> It's invalid in identity: false
2025-02-19T22:03:35.680Z: The current session is valid but needs refresh. Refreshing...
2025-02-19T22:03:35.681Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIrarZvQYQzeLZvQZSJggBEhDK_S08TNZKzZRN7T6rMHiFGhCOOs93GRRMsJvKwKPB-3TwEkB23ihKnWKYfpX4SQA7cabTBvQoSdN23RE-z_D5oP299VmXp2b1VWJIEFZDrvGIIESiW5U0DF7GMitw7lct-mAN&refresh_token=atkn_CiEIrarZvQYQrcT3vgaiARIKEI46z3cZFEywm8rAo8H7dPASQFX6_dhh8tM_LIUNkxOVo-h23DFsv3HweVPD5m-ib72D-1NxD6lejTTHYsOlbBrnuRCJfC7UFYsStYpRs-BD2w4&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.938Z: Request to https://accounts.shopify.com/oauth/token?grant_type=refresh_token&access_token=atkn_CjQIrarZvQYQzeLZvQZSJggBEhDK_S08TNZKzZRN7T6rMHiFGhCOOs93GRRMsJvKwKPB-3TwEkB23ihKnWKYfpX4SQA7cabTBvQoSdN23RE-z_D5oP299VmXp2b1VWJIEFZDrvGIIESiW5U0DF7GMitw7lct-mAN&refresh_token=atkn_CiEIrarZvQYQrcT3vgaiARIKEI46z3cZFEywm8rAo8H7dPASQFX6_dhh8tM_LIUNkxOVo-h23DFsv3HweVPD5m-ib72D-1NxD6lejTTHYsOlbBrnuRCJfC7UFYsStYpRs-BD2w4&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3 completed in 257 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/"7cb1b7461751263e95ee6dad5f08d339"
 - server-timing: processing;dur=74, socket_queue;dur=1.361, edge;dur=1.08, util;dur=0.15, cfRequestDuration;dur=213.999748
 - x-request-id: a97a7c73-d30d-466a-b7bd-de48a5fb5222-1740002615
    
2025-02-19T22:03:35.940Z: 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.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.940Z: 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.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.940Z: 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+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.940Z: 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%2Fpink-gellac-live.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:35.940Z: 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%2Forganization.apps.manage&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

2025-02-19T22:03:36.186Z: 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%2Fpink-gellac-live.myshopify.com%2Fadmin completed in 246 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/"3f2392dc72d35075fa034fee4d72645d"
 - server-timing: processing;dur=38, socket_queue;dur=1.001, edge;dur=1.043, util;dur=0.05, cfRequestDuration;dur=180.000067
 - x-request-id: 2947ebf0-8a0b-4797-ac90-972b363c9198-1740002615
    
2025-02-19T22:03:36.191Z: 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 251 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/"4e7cfa3e0450b83e55ddd3e315562fbe"
 - server-timing: processing;dur=43, socket_queue;dur=1.857, edge;dur=1.054, util;dur=0.15, cfRequestDuration;dur=204.999924
 - x-request-id: 65111599-49e6-425a-a555-5555c89f5bab-1740002615
    
2025-02-19T22:03:36.192Z: 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+https%3A%2F%2Fapi.shopify.com%2Fauth%2Forganization.store-management&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/"986ba01a19f4d82c95eb4f34c94b7847"
 - server-timing: processing;dur=44, socket_queue;dur=1.356, edge;dur=1.047, util;dur=0.15, cfRequestDuration;dur=190.000057
 - x-request-id: 39bf1872-ffb8-4848-b165-1297e9152ed4-1740002615
    
2025-02-19T22:03:36.199Z: 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%2Forganization.apps.manage&subject_token=**** completed in 258 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/"06c1bc52de9928d8961f86affea9ae92"
 - server-timing: processing;dur=41, socket_queue;dur=1.807, edge;dur=1.031, util;dur=0.2, cfRequestDuration;dur=184.000015
 - x-request-id: 484e733b-9374-4309-9cef-9c3e2d47165c-1740002616
    
2025-02-19T22:03:36.230Z: 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 290 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/"9764beafb36a54ef0cd50f77b6209b8d"
 - server-timing: processing;dur=59, socket_queue;dur=1.853, edge;dur=1.036, util;dur=0.15, cfRequestDuration;dur=234.999895
 - x-request-id: c6bea826-1bec-46a3-8920-b50deb5450b3-1740002615
    
2025-02-19T22:03:36.231Z: Setting session store...
2025-02-19T22:03:36.238Z: Sending "Admin" GraphQL request:
  query publicApiVersions {
  publicApiVersions {
    handle
    supported
    __typename
  }
}

With variables:
{}

With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

to https://pink-gellac-live.myshopify.com/admin/api/unstable/graphql.json
2025-02-19T22:03:36.564Z: Request to https://pink-gellac-live.myshopify.com/admin/api/unstable/graphql.json completed in 325 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=228, graphql;desc="admin/query/other", cfRequestDuration;dur=277.999878
 - x-request-id: 1ad7678a-6d4c-4eae-b6d3-8acb6628c689-1740002616
    
2025-02-19T22:03:36.564Z: Sending "Admin" GraphQL request:
  query getThemes($after: String) {
  themes(first: 50, after: $after) {
    nodes {
      id
      name
      role
      processing
      __typename
    }
    pageInfo {
      hasNextPage
      endCursor
      __typename
    }
    __typename
  }
}

With variables:
{
  "after": null
}

With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json

to https://pink-gellac-live.myshopify.com/admin/api/2025-01/graphql.json
2025-02-19T22:03:36.826Z: Request to https://pink-gellac-live.myshopify.com/admin/api/2025-01/graphql.json completed in 262 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=134, graphql;desc="admin/query/other", cfRequestDuration;dur=218.000174
 - x-request-id: 247ee94c-ae82-4038-a27b-6c61198874e3-1740002616
    
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:03:36.850Z: Sending "Admin" GraphQL request:
  query OnlineStorePasswordProtection {
  onlineStore {
    passwordProtection {
      enabled
      __typename
    }
    __typename
  }
}

With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:04:30.846Z: Request to https://pink-gellac-live.myshopify.com/admin/api/2025-01/graphql.json completed in 186 ms
With response headers:
 - content-type: application/json; charset=utf-8
 - server-timing: processing;dur=88, graphql;desc="admin/query/other", cfRequestDuration;dur=145.999908
 - x-request-id: 83c9ee9e-4eb1-4924-bc10-70e9ae612674-1740002616
    
2025-02-19T22:04:30.846Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2025-02-19T22:04:30.846Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store pink-gellac-live.myshopify.com:
[]

2025-02-19T22:04:30.846Z: Getting session store...
2025-02-19T22:04:30.846Z: 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",
  "https://api.shopify.com/auth/organization.store-management",
  "https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "pink-gellac-live.myshopify.com"
  }
}

2025-02-19T22:04:30.847Z: - Token validation -> It's expired: false
2025-02-19T22:04:30.847Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-19T22:04:30.847Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:03:37.260Z: Request to https://accounts.shopify.com/oauth/introspection completed in 229 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/"1f54dedf5810dd0f6d11a96db5cbe2f3"
 - server-timing: processing;dur=24, socket_queue;dur=1.908, edge;dur=1.041, util;dur=0.15, cfRequestDuration;dur=180.999756
 - x-request-id: 87534c50-e7d1-427f-87f1-75ea25cd98fc-1740002617
    
2025-02-19T22:03:37.261Z: The identity token is valid: true
2025-02-19T22:03:37.261Z: - Token validation -> It's invalid in identity: false
2025-02-19T22:03:37.261Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2025-02-19T22:03:37.261Z: Getting session store...
2025-02-19T22:03:37.261Z: 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",
  "https://api.shopify.com/auth/organization.store-management",
  "https://api.shopify.com/auth/organization.apps.manage"
]
For applications:
{
  "storefrontRendererApi": {
    "scopes": []
  }
}

2025-02-19T22:03:37.261Z: - Token validation -> It's expired: false
2025-02-19T22:03:37.262Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-02-19T22:03:37.262Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.75.0
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:03:37.473Z: Request to https://accounts.shopify.com/oauth/introspection completed in 211 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/"1f54dedf5810dd0f6d11a96db5cbe2f3"
 - server-timing: processing;dur=21, socket_queue;dur=1.203, edge;dur=1.034, util;dur=0.05, cfRequestDuration;dur=171.000004
 - x-request-id: c106cbfd-dbf0-471e-8e8f-b6065b8197f8-1740002617
    
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:03:37.581Z: Request to https://pink-gellac-live.myshopify.com/?preview_theme_id=154230620491&_fd=0&pb=0 completed in 107 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - server-timing: processing;dur=12, db;dur=3, db_async;dur=1.84, asn;desc="31042", edge;desc="BEG", country;desc="RS", theme;desc="154230620491", pageType;desc="index", servedBy;desc="7cl9", requestID;desc="d0ac781a-7b49-4990-aa23-e88baf1cf100-1740002617", cfRequestDuration;dur=65.999985
 - x-request-id: d0ac781a-7b49-4990-aa23-e88baf1cf100-1740002617
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Generating Liquid profile for pink-gellac-live.myshopify.com/ ...
2025-02-19T22:03:38.642Z: [Theme Profile] Resolved URL to open: /home/djordje/.nvm/versions/node/v20.18.0/lib/node_modules/@shopify/cli/dist/assets/speedscope/index.html
2025-02-19T22:03:38.645Z: [Theme Profile] writing JS file to: /tmp/d4b665f5e3efce5f10e900a2ac1f2b56/speedscope-1740002618644-3945.js
2025-02-19T22:03:38.645Z: Writing some content to file at /tmp/d4b665f5e3efce5f10e900a2ac1f2b56/speedscope-1740002618644-3945.js...
2025-02-19T22:03:38.647Z: [Theme Profile] JS file created successfully: /tmp/d4b665f5e3efce5f10e900a2ac1f2b56/speedscope-1740002618644-3945.js
2025-02-19T22:03:38.647Z: [Theme Profile] writing HTML file to: /tmp/291af90809477fbeab37b54891e8b83c/speedscope-1740002618644-3945.html
2025-02-19T22:03:38.648Z: Writing some content to file at /tmp/291af90809477fbeab37b54891e8b83c/speedscope-1740002618644-3945.html...
2025-02-19T22:03:38.648Z: [Theme Profile] HTML file created successfully: /tmp/291af90809477fbeab37b54891e8b83c/speedscope-1740002618644-3945.html

2025-02-19T22:03:38.665Z: 
Running system process:
  · Command: npm prefix
  · Working directory: /home/djordje/code/ap/pink-gellac

2025-02-19T22:03:38.740Z: Obtaining the dependency manager in directory /home/djordje/code/ap/pink-gellac...
2025-02-19T22:03:39.034Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 212 ms
With response headers:
 - x-request-id: dcee64ce-a985-4c12-aca7-870b3a5f9d59
    
2025-02-19T22:03:39.034Z: Analytics event sent: {
  "command": "theme profile",
  "time_start": 1740002615402,
  "time_end": 1740002618659,
  "total_time": 3257,
  "success": true,
  "cli_version": "3.75.0",
  "ruby_version": "",
  "node_version": "20.18.0",
  "is_employee": false,
  "uname": "linux amd64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "bash",
  "env_device_id": "4ea22de0e56abb38eb27a3015c037646e55d7934",
  "env_cloud": "localhost",
  "env_package_manager": "npm",
  "env_is_global": true,
  "env_auth_method": "device_auth",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 2126,
  "cmd_all_timing_prompts_ms": 0,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_verbose": true,
  "cmd_all_path_override": false,
  "cmd_all_last_graphql_request_id": "83c9ee9e-4eb1-4924-bc10-70e9ae612674-1740002616",
  "cmd_all_timing_active_ms": 1130,
  "cmd_all_exit": "ok",
  "user_id": "2dd9309f-bf5d-4bed-be1a-a2b6ab76bcd5",
  "request_ids": [
    "1ad7678a-6d4c-4eae-b6d3-8acb6628c689-1740002616",
    "247ee94c-ae82-4038-a27b-6c61198874e3-1740002616",
    "83c9ee9e-4eb1-4924-bc10-70e9ae612674-1740002616"
  ],
  "args": "-s pink-gellac-live --verbose",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2025-02-19T22:03:39.034Z: Completed command theme profile

@jamesmengo
Copy link
Contributor

OK so it seems like we're getting all the way to trying to open a file from a URL on your file system.

Unfortunately, I can't replicate this on my end so I think our best path forward is to gather some more information:

  1. Can you try upgrading node?
  2. Try running the theme profile command from the VS code command palette that would help investigate
  3. There's a new release coming next week. I'm not confident that this will solve things, however let's try again then.

https://marketplace.visualstudio.com/items?itemName=Shopify.theme-check-vscode

@djordje-st
Copy link
Author

djordje-st commented Feb 22, 2025

@jamesmengo

  1. Tried with node 22.14 but no luck.
  2. Doesn't look I can run CLI commands from the command palette? Do I need another extension aside from the one you linked?

I did some digging, and it looks like the URL that the CLI is trying to open gives a 404: file:///tmp/5bb1df06420689cf7f563d20b2412c08/speedscope-1740243964318-8784.html

The URL looks incorrect, because it's looking for a directory in Windows. The URL should be:
file://wsl.localhost/Ubuntu/tmp/5bb1df06420689cf7f563d20b2412c08/speedscope-1740243964318-8784.html

When I change it to the above, I get redirected to the URL below which is also a 404:
file://wsl.localhost/Ubuntu/home/djordje/.nvm/versions/node/v20.18.0/lib/node_modules/@shopify/cli/dist/assets/speedscope/index.html#localProfilePath=/tmp/3e12877d884cae7819f6c00a483b97c4/speedscope-1740243964318-8784.js

The above is missing the Linux distro name before the user folder (djordje), which in my case is Ubuntu.
The wsl.localhost/[DISTRO] is also missing from the localProfilePath URL param.

When I add the distro like described above, and correct the localProfilePath param it works perfectly: file://wsl.localhost/Ubuntu/home/djordje/.nvm/versions/node/v20.18.0/lib/node_modules/@shopify/cli/dist/assets/speedscope/index.html#localProfilePath=//wsl.localhost/Ubuntu/tmp/3e12877d884cae7819f6c00a483b97c4/speedscope-1740243964318-8784.js

Hope that helps, let me know if you need anything else from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 3 Normal Severity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants