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]: theme dev: Failed to fetch theme: <non-existent-theme-id> #5192

Open
2 tasks done
jo-elbdev opened this issue Jan 14, 2025 · 1 comment
Open
2 tasks done

[Bug]: theme dev: Failed to fetch theme: <non-existent-theme-id> #5192

jo-elbdev opened this issue Jan 14, 2025 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@jo-elbdev
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

the command shopify theme dev should start the development theme

Actual behavior

When I use shopify theme dev the CLI fails with the error message:

Failed to fetch theme:
No additional information or suggestions are provided, making it difficult for the user to understand the root cause or how to resolve the issue. The theme also does not exist, when I try to use shopify theme delete.

Verbose output

2025-01-14T12:48:45.479Z: Running command theme dev
2025-01-14T12:48:45.484Z: Notifications to show: 0
2025-01-14T12:48:45.492Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2025-01-14T12:48:45.492Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store dermalogica-shop.myshopify.com:
[]

2025-01-14T12:48:45.492Z: Getting session store...
2025-01-14T12:48:45.493Z: 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": "dermalogica-shop.myshopify.com"
}
}

2025-01-14T12:48:45.493Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2025-01-14T12:48:45.493Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:

  • User-Agent: Shopify CLI; v=3.73.1
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

2025-01-14T12:48:45.684Z: Request to https://accounts.shopify.com/oauth/introspection completed in 191 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/"1e20df9caf483177b7dc562f4c0a4106"
  • server-timing: processing;dur=29, socket_queue;dur=1.157, edge;dur=1.04, util;dur=0.2, cfRequestDuration;dur=152.999878
  • x-request-id: 157e4ddf-0157-47a5-bf13-386d177d4f4b-1736858925

2025-01-14T12:48:45.687Z: The identity token is valid: true
2025-01-14T12:48:45.687Z:
The validation of the token for application/identity completed with the following results:

  • It's expired: false
  • It's invalid in identity: false

2025-01-14T12:48:45.688Z: Getting development theme...
2025-01-14T12:48:45.690Z: Sending "Admin" GraphQL request:
query publicApiVersions {
publicApiVersions {
handle
supported
__typename
}
}

With variables:
{}

With request headers:

  • User-Agent: Shopify CLI; v=3.73.1
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

to https://myshop-shop.myshopify.com/admin/api/unstable/graphql.json
2025-01-14T12:48:45.833Z: Request to https://myshop-shop.myshopify.com/admin/api/unstable/graphql.json completed in 143 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=74, graphql;desc="admin/query/other", cfRequestDuration;dur=106.999874, ipv6
  • x-request-id: 6c828c3b-c03b-477f-b03f-5fe38c5bae40-1736858925

2025-01-14T12:48:45.834Z: Sending "Admin" GraphQL request:
query getTheme($id: ID!) {
theme(id: $id) {
id
name
role
processing
__typename
}
}

With variables:
{
"id": "gid://shopify/OnlineStoreTheme/168740192521"
}

With request headers:

  • User-Agent: Shopify CLI; v=3.73.1
  • Keep-Alive: timeout=30
  • Sec-CH-UA-PLATFORM: darwin
  • Content-Type: application/json

to https://dermalogica-shop.myshopify.com/admin/api/2025-01/graphql.json
2025-01-14T12:48:45.985Z: Request to https://dermalogica-shop.myshopify.com/admin/api/2025-01/graphql.json completed in 150 ms
With response headers:

  • content-type: application/json; charset=utf-8
  • server-timing: processing;dur=73, graphql;desc="admin/query/other", cfRequestDuration;dur=109.999895, ipv6
  • x-request-id: 0cea444f-59b3-46d9-a87d-6f16b09ed4fb-1736858925

╭─ error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Failed to fetch theme: 168740192521 │

Reproduction steps

  1. Run shopify theme dev while logged into a store.

Operating System

Mac OS Sonoma 14.5

Shopify CLI version (shopify --version)

3.73.1

Shell

No response

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

No response

What language and version are you using in your application?

No response

@jo-elbdev jo-elbdev added the Type: Bug Something isn't working label Jan 14, 2025
@jo-elbdev jo-elbdev changed the title [Bug]: theme dev: Failed to fetch theme: <non-existant-theme-id> [Bug]: theme dev: Failed to fetch theme: <non-existent-theme-id> Jan 14, 2025
@b-sabino-swiftotter
Copy link

A member of our team encountered this issue earlier today. They were using the latest version of the CLI and Node v21.0.0.

We weren't able to determine a root cause, but logging out and back in solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants