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]: 40X errors when using shopify theme dev #5103

Open
2 tasks done
mlaigre opened this issue Dec 13, 2024 · 0 comments
Open
2 tasks done

[Bug]: 40X errors when using shopify theme dev #5103

mlaigre opened this issue Dec 13, 2024 · 0 comments
Labels
Area: @shopify/theme @shopify/theme package issues Severity: 2 High Severity Type: Bug Something isn't working

Comments

@mlaigre
Copy link

mlaigre commented Dec 13, 2024

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

Using shopify theme dev I want to access routes like /tools/recurring/get_rc_token/xxxxx (ReCharge app) or /account/logout.

Actual behavior

These routes fail and return 40X error codes when using shopify theme dev.

But they work in preview and in production.

It starts to fail after upgrading to Theme CLI 3.72 from an old version (I don't remember the version number).

Verbose output

$ shopify theme dev --store=reglopetfood --path dist
╭─ success ────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Preview your theme                                                          │
│    • http://127.0.0.1:9292                                                   │
│                                                                              │
│  Next steps                                                                  │
│    • Preview your gift                                                       │
│      cards                                                                   │
│    • Customize your theme at the theme editor                                │
│    • Share your theme preview                                                │
│      (https://reglopetfood.myshopify.com/?preview_theme_id=176146219353)     │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

• 10:39:34 Request »    GET 200 / 482ms
• 10:54:17 Request »    GET 200 /account/login 166ms
• 10:39:48 Request »   POST 302 /account/login 483ms
• 10:39:48 Request »    GET 200 /account 201ms
• 10:39:52 Request »    GET 405 /tools/recurring/get_rc_token/5937407918332 122ms
• 10:40:05 Request »    GET 401 /account/logout 206ms

Reproduction steps

  1. Start shopify theme dev
  2. Login in http://127.0.0.1:9292/account/login
  3. Open http://127.0.0.1:9292/account/logout
  4. It fails and outputs 401 in shopify theme dev logs

Operating System

Mac OS Ventura 13.2 darwin-arm64

Shopify CLI version (shopify --version)

3.72.0

Shell

iTerm2 zsh

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

v21.2.0

What language and version are you using in your application?

No response

@mlaigre mlaigre added the Type: Bug Something isn't working label Dec 13, 2024
@frandiox frandiox added Area: @shopify/theme @shopify/theme package issues Severity: 3 Normal Severity Severity: 2 High Severity and removed Severity: 3 Normal Severity labels Dec 16, 2024
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: 2 High Severity Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants