Skip to content

[Bug]: Theme ID mismatch #5540

@nboliver-ventureweb

Description

@nboliver-ventureweb

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

Dev preview at http://127.0.0.1:9292 should work and allow navigation across pages

Actual behavior

When changing routes (eg. from collection to product) the default store password screen is displayed (not the password template from the theme), then after the password is entered, the Theme ID mismatch error is happening.

Image

This happens even after deleting the dev theme and starting the dev server again, and has been happening since last week.

Verbose output

Verbose output

• 08:29:07 Request » GET 200 /collections/all/products/the-collection-snowboard-hydrogen 131ms
• 08:29:13 Request » POST 302 /password 141ms
2025-03-19T15:29:13.012Z: → Rendering https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0 (with )...
2025-03-19T15:29:13.625Z: Request to https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0 completed in 613 ms
With response headers:

  • cache-control: max-age=0, private, must-revalidate
  • content-type: text/html; charset=utf-8
  • etag: W/"1f05dd2d3928a8f673c1e5ddd54e25f7"
  • server-timing: processing;dur=450, socket_queue;dur=8.761, cfRequestDuration;dur=550.999880
  • x-request-id: 1521428d-6c6e-4059-8c20-92a884371c20-1742398153

2025-03-19T15:29:13.625Z: ← 200 (request_id: 1521428d-6c6e-4059-8c20-92a884371c20-1742398153)
• 08:29:13 Request » GET 200 / 551ms
╭─ error ──────────────────────────────────────────────────────────────╮
│ │
│ Theme ID mismatch: expected 177068736787 but got 167209009427. │
│ Request ID: 1521428d-6c6e-4059-8c20-92a884371c20-1742398153 │
│ URL: https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0
│ │
│ This is likely related to an issue in upstream Shopify APIs. │
│ Please try again in a few minutes and report this issue: │
https://github.com/Shopify/cli/issues/new?template=bug-report.yml
│ │
╰──────────────────────────────────────────────────────────────────────╯

Reproduction steps

  1. Use SHOPIFY_CLI_THEME_TOKEN env variable from the theme access app for authentication, and SHOPIFY_FLAG_STORE to configure the store flag, then run shopify theme dev --live-reload full-page
  2. Navigate to a collection page, then try to navigate to a product page
  3. See the default password screen
  4. Enter store password and get theme ID mismatch error

Operating System

Mac OS Ventura 13.3.1

Shopify CLI version (shopify --version)

3.76.2

Shell

zsh

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

v22.13.1

What language and version are you using in your application?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions