CLI > Theme Dev > cart ajax 401

Can confirm it let me make about 50 requests and it has now reverted back to the same issue :smirking_face:

@Liam-Shopify Any joy? :eyes:

Hey everyone, if you are still experiencing issues can you reply with some information around it. Ideally we prefer if you are trying 3.91.0 since it contained a fix.

If you are still experiencing issues with that version, please let me know what the error is. Are you getting the same 401 error or something new? If you have verbose logs they would be super helpful as well.

@Josh-Shopify Confirming in on the latest CLI and still seeing the same errors - it lets you add 1 or 2 products to cart locally, and then you get hit with the same wave of errors as previously:

Hereโ€™s some verbose logs if it helps from the CLI. In addition to these, I get the same /collect endpoint errors as previously aswell every few seconds in the console.

2026-03-05T11:39:22.105Z: Request to https://store-name.myshopify.com/admin/api/2026-01/graphql.json completed in 522 ms
With response headers:

content-type: application/json; charset=utf-8

server-timing: processing;dur=163, verdict_flag_enabled;desc=โ€œcount=20โ€;dur=2.615, graphql;desc=โ€œadmin/mutation/otherโ€, _y;desc=โ€œc7f7f7fb-4928-4b86-b0a2-607f2626bbbcโ€, _s;desc=โ€œ6439b6e1-37ec-4a00-85a1-4feebd71129aโ€, cfRequestDuration;dur=417.999983

x-request-id: a4d99fd2-baba-4cc8-bf46-41b8daaa4e6d-1772710761

2026-03-05T11:39:22.105Z: File Upload Results:
-config/settings_data.json: success

2026-03-05T11:39:22.309Z: โ†’ Rendering https://store-name.myshopify.com/products/mixed-media-eyeshadow-mattes?_fd=0&pb=0&variant=45147506049183โ€ฆ
2026-03-05T11:39:22.363Z: โ† 429 (request_id: null)
2026-03-05T11:39:22.364Z: Render failed for /products/mixed-media-eyeshadow-mattes?variant=45147506049183 with 429 (x-request-id: null), trying proxyโ€ฆ
2026-03-05T11:39:23.238Z: Proxy status: 200. Returning proxy response.
โ€ข 11:39:23 Request ยป    GET 200 /products/mixed-media-eyeshadow-mattes?variant=45147506049183 838ms
2026-03-05T11:39:23.892Z: โ†’ Rendering https://store-name.myshopify.com/?_fd=0&pb=0&section_id=sections--27108294001010__headerโ€ฆ
โ€ข 11:39:23 Request ยป   POST 429 /shopify_pay/accelerated_checkout 13ms
2026-03-05T11:39:23.915Z: โ† 429 (request_id: null)
โ•ญโ”€ warning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                โ”‚
โ”‚  Failed to render section on Hot Reload with status 429 (Too Many Requests).   โ”‚
โ”‚                                                                                โ”‚
โ”‚  Error                                                                         โ”‚
โ”‚      at createError                                                            โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:200998:14)  โ”‚
โ”‚      at createFetchError                                                       โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201805:10)  โ”‚
โ”‚      at                                                                        โ”‚
โ”‚  file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:203770:80    โ”‚
โ”‚      at process.processTicksAndRejections                                      โ”‚
โ”‚  (node:internal/process/task_queues:105:5)                                     โ”‚
โ”‚      at async Object.handler                                                   โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201684:17)  โ”‚
โ”‚      at async Server.                                               โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201778:7)   โ”‚
โ”‚                                                                                โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

2026-03-05T11:39:24.287Z: โ†’ Rendering https://store-name.myshopify.com/?_fd=0&pb=0โ€ฆ
2026-03-05T11:39:24.338Z: โ† 429 (request_id: null)
2026-03-05T11:39:24.338Z: Render failed for / with 429 (x-request-id: null), trying proxyโ€ฆ
2026-03-05T11:39:24.735Z: โ† 429 (request_id: null)
2026-03-05T11:39:25.178Z: Proxy status: 200. Returning proxy response.
โ€ข 11:39:25 Request ยป    GET 200 / 804ms
2026-03-05T11:39:25.585Z: โ†’ Rendering https://store-name.myshopify.com/?_fd=0&pb=0&section_id=template--27108294492530__featured-collectionsโ€ฆ
2026-03-05T11:39:25.647Z: Proxy status: 200. Returning proxy response.
2026-03-05T11:39:25.667Z: โ† 429 (request_id: null)
2026-03-05T11:39:25.695Z: โ† 429 (request_id: null)
โ•ญโ”€ warning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                โ”‚
โ”‚  Failed to render section on Hot Reload with status 429 (Too Many Requests).   โ”‚
โ”‚                                                                                โ”‚
โ”‚  Error                                                                         โ”‚
โ”‚      at createError                                                            โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:200998:14)  โ”‚
โ”‚      at createFetchError                                                       โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201805:10)  โ”‚
โ”‚      at                                                                        โ”‚
โ”‚  file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:203770:80    โ”‚
โ”‚      at process.processTicksAndRejections                                      โ”‚
โ”‚  (node:internal/process/task_queues:105:5)                                     โ”‚
โ”‚      at async Object.handler                                                   โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201684:17)  โ”‚
โ”‚      at async Server.                                               โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201778:7)   โ”‚
โ”‚                                                                                โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ€ข 11:39:25 Request ยป   POST 429 /shopify_pay/accelerated_checkout 10ms
2026-03-05T11:39:26.588Z: Proxy status: 200. Returning proxy response.
2026-03-05T11:39:29.975Z: โ†’ Rendering https://store-name.myshopify.com/products/arch-support-clear-brow-scuplt?_fd=0&pb=0&variant=52537642320242โ€ฆ
2026-03-05T11:39:30.033Z: โ† 429 (request_id: null)
2026-03-05T11:39:30.034Z: Render failed for /products/arch-support-clear-brow-scuplt?variant=52537642320242 with 429 (x-request-id: null), trying proxyโ€ฆ
2026-03-05T11:39:30.842Z: Proxy status: 200. Returning proxy response.
โ€ข 11:39:30 Request ยป    GET 200 /products/arch-support-clear-brow-scuplt?variant=52537642320242 773ms
2026-03-05T11:39:31.242Z: โ†’ Rendering https://store-name.myshopify.com/?_fd=0&pb=0&section_id=sections--27108294001010__headerโ€ฆ
2026-03-05T11:39:31.247Z: โ† 429 (request_id: null)
2026-03-05T11:39:31.280Z: โ† 429 (request_id: null)
โ•ญโ”€ warning โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                โ”‚
โ”‚  Failed to render section on Hot Reload with status 429 (Too Many Requests).   โ”‚
โ”‚                                                                                โ”‚
โ”‚  Error                                                                         โ”‚
โ”‚      at createError                                                            โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:200998:14)  โ”‚
โ”‚      at createFetchError                                                       โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201805:10)  โ”‚
โ”‚      at                                                                        โ”‚
โ”‚  file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:203770:80    โ”‚
โ”‚      at process.processTicksAndRejections                                      โ”‚
โ”‚  (node:internal/process/task_queues:105:5)                                     โ”‚
โ”‚      at async Object.handler                                                   โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201684:17)  โ”‚
โ”‚      at async Server.                                               โ”‚
โ”‚  (file:///opt/homebrew/lib/node_modules/
/cli/dist/index.js:201778:7)   โ”‚
โ”‚                                                                                โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ€ข 11:39:31 Request ยป   POST 429 /shopify_pay/accelerated_checkout 8ms
2026-03-05T11:39:32.138Z: Proxy status: 200. Returning proxy response.
โ€ข 11:39:38 Request ยป   POST 429 /cart/add 56ms
2026-03-05T11:39:38.545Z: โ† 429 (request_id: null)

@Lewis thank you so much Iโ€™ll take this and look into it!

Is there any internal update on an ETA on a fix for this yet?

Weโ€™re currently trying to ship a theme to a client, but weโ€™re really limited at the moment, as you can only make a small number of requests to the cart before we run into issues.

It has been over three weeks now.

I can confirm on the latest CLI 3.91.1 I am getting the same issues as @Lewis - 429 rate limiting request issues after adding performing 2 or 3 cart actions in local dev - e.g. add an item to cart, reduce its quantity in my cart popout twice. Then wave after wave of 429 errors.

I appreciate the responses. We have identified the root cause and are actively working on a fix. I will update again once thatโ€™s shipped. We will likely create a snap build for anyone to test as well.

1 Like

Good morning everyone, we released a patch for the CLI and the new version is 3.92.1. This should fix the rate limiting issues weโ€™ve been seeing along with the 401 status.

If you are still experiencing problems, please let us know and we can take a look.

1 Like

@Josh-Shopify Still getting 401 errors on 3.92.1

Also getting 502s from cart/add.js

Hey @Nic_Oliver , could I get some verbose logs from you so I can look at some of the requests going out?

Still having the same issues with the 429 getting triggered after a single add to cart action, making the localhost useless.

Are you also on version 3.92.1?

@Josh-Shopify Donโ€™t know if itโ€™s related but Iโ€™m still getting a Expired Access Token Error. See Shopify Theme Dev > Access Token Expired

Assuming you were talking to me: Yes :slight_smile:

1 Like

For anyone experiencing the error, I want to track something else from some of our logs. When you are experiencing the issue, are you using AI sessions through Cursor, claude code etc? If you are, do you experience the same problem when running theme dev outside of it and clicking around to get cart requests to fire?

One case Iโ€™m seeing is that there might be an issue when using the Cursor browser and a regular browser like chrome at the same time.

I am still looking into cases where we are seeing non stop 401โ€™s so this is not the only angle we are checking, but itโ€™s helpful to narrow down cases!

Has there been any movement on this yet?

Iโ€™m still having to fight with this each time.

Iโ€™m updated to the latest version of CLI 3.93.1

--verbose doesnโ€™t seem to output much, but shows the below items

The store shows prices in USD, not the default GBP. When I use the country selector dropdown, it navigates to /localization and gives me the verify connection page. If I click add to cart, console errors out with:

contentInt.js:1  GET http://127.0.0.1:9292/cart.js 401 (Unauthorized)
b5bfe654aw9a31df99pb879ff13m3bd6cd49m.js:1  POST http://127.0.0.1:9292/cart/add.js 401 (Unauthorized)
VM454:1 Uncaught (in promise) SyntaxError: Unexpected token 'T', "The access"... is not valid JSONUnderstand this error
contentInt.js:1  GET http://127.0.0.1:9292/cart.js 401 (Unauthorized)
5[Violation] Permissions policy violation: unload is not allowed in this document.Understand this error
padlock-birthstone-necklace?variant=56200990065026:1 Executing inline event handler violates the following Content Security Policy directive 'script-src 'self' https://cdn.shopify.com/shopifycloud/themekit_access/ 'report-sample' 'nonce-oZTar20zxgOo/C6001HYVA==''. Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. The policy is report-only, so the violation has been logged but no further action has been taken.

--verbose logs

2026-04-13T08:15:13.509Z: โ† 200 (request_id: 4dae3e87-aad4-40bf-8e2f-ede6a092bccf-1776068112)
2026-04-13T08:15:13.522Z: โ†’ Rendering https://theme-kit-access.shopifyapps.com/cli/sfr/products/padlock-birthstone-necklace?_fd=0&pb=0&option_values=11077836865922%2C11077836996994&section_id=template--27331091595650__main...
2026-04-13T08:15:13.786Z: โ† 200 (request_id: 371de7d9-eef6-44dc-9cd6-e8c4fa5944ed-1776068112)
2026-04-13T08:15:13.871Z: โ† 200 (request_id: c2407625-848a-4d99-9fed-874bcc889705-1776068112)
2026-04-13T08:15:13.881Z: โ† 200 (request_id: 26ae420d-a13f-4c0e-8791-544de109b6fb-1776068113)
2026-04-13T08:15:14.076Z: โ† 200 (request_id: eda15ebd-d689-46d4-9527-2a5112c7de53-1776068113)
2026-04-13T08:15:14.422Z: โ† 200 (request_id: 845559ff-b1f1-4363-b52c-f40e28b13939-1776068113)
โ€ข 09:15:20 Request ยป    GET 200 /apps/loggedincustomer 311ms
2026-04-13T08:15:59.083Z: โ†’ Rendering https://theme-kit-access.shopifyapps.com/cli/sfr/cart.js?_fd=0&pb=0 (with config/markets.json)...
2026-04-13T08:15:59.881Z: โ† 422 (request_id: 3c6796d3-1d7f-4cd3-9ad4-21c094c8dfe7-1776068159)
2026-04-13T08:15:59.883Z: Render failed for /cart.js with 422 (x-request-id: 3c6796d3-1d7f-4cd3-9ad4-21c094c8dfe7-1776068159), trying proxy...
2026-04-13T08:15:59.951Z: Proxy status: 429. Returning render error.
2026-04-13T08:20:12.965Z: โ†’ Rendering https://theme-kit-access.shopifyapps.com/cli/sfr/products/ring-goodie-bag?_fd=0&pb=0&pr_prod_strat=collection_fallback&pr_rec_id=d3ba69151&pr_rec_pid=6951975157937&pr_ref_pid=15233703346562&pr_seq=uniform (with config/markets.json)...
2026-04-13T08:20:14.546Z: โ† 200 (request_id: 8b8c86f0-2df4-4a4e-9d9e-af5e931470a2-1776068413)
โ€ข 09:20:14 Request ยป    GET 200 /products/ring-goodie-bag?pr_prod_strat=collection_fallback&pr_rec_id=d3ba69151&... 1449ms
โ€ข 09:20:17 Request ยป   POST 429 /localization 7ms

Hey @ConduciveMammal, we have fixed many cases causing the 401โ€™s. I am not sure what is happening in your case. Iโ€™m going to DM you with some additional questions.

Thanks!

Iโ€™m still getting 401s when just generally running the CLI for a while
โ€œThe access token provided is expired, revoked, malformed, or invalid for other reasons.โ€
See request ID d3d40337-5d50-40ae-a8f6-de1238853918-1776936419