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]: Cart AJAX API returning 404 #4690

Open
2 tasks done
nboliver-ventureweb opened this issue Oct 18, 2024 · 1 comment
Open
2 tasks done

[Bug]: Cart AJAX API returning 404 #4690

nboliver-ventureweb opened this issue Oct 18, 2024 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@nboliver-ventureweb
Copy link

nboliver-ventureweb commented Oct 18, 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

The AJAX API endpoints cart/add.js and cart/update.js should the dev theme preview available at http://127.0.0.1:9292

Actual behavior

The AJAX API endpoints cart/add.js and cart/update.js are returning 404s when using the dev theme preview at http://127.0.0.1:9292
CLI version 3.66.1 seems to work, but 3.67.1 and 3.68.1 do not.
Using the --legacy flag does not fix the issue.

Request:
Image

http://127.0.0.1:9292 Response:
Image

Same request, same theme, but using the myshopify.com URL:
Image

Verbose output

Can be shared via DM

Reproduction steps

  1. Run npm exec --package @shopify/[email protected] -- shopify theme dev --live-reload full-page (or try v3.67.1). Note that we are currently using npm exec because we rely on Shopkeeper, which was broken by CLI versions > 3.58, but the theme dev command is broken in that version. See Move theme utilities to cli-kit #4469
  2. Visit http://127.0.0.1:9292 in browser
  3. Try to add or update via AJAX API
  4. Get a 404 response

Operating System

Mac OS Ventura

Shopify CLI version (check your project's package.json if you're not sure)

3.68.1

Shell

No response

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

v22.3.0

What language and version are you using in your application?

No response

@nboliver-ventureweb nboliver-ventureweb added the Type: Bug Something isn't working label Oct 18, 2024
@montalvomiguelo
Copy link
Contributor

I was not able to reproduce the issue using the steps provided. Am I missing something?

update-200.mp4

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