Any update on this?
+1
Any update on this?
+1
I’ve been hitting this one constantly and thought I was going mad. It has prevented me from doing any adding to cart when developing using the local server. Incredibly frustrating.
Im having the same issue and also a never ending errors about “collect” end point
Hey folks, quick update on this.
I followed up with the CLI team internally and they’re actively looking into the 401 regression. A couple of things from that conversation:
First, a correction on the workaround – rather than downgrading CLI versions (which as some of you have found isn’t reliable), the team recommends using the preview URL that shopify theme dev outputs when it starts up (the https://*.myshopify.com URL with the preview_theme_id param) instead of the localhost URL. That should bypass the 401 entirely while this gets sorted.
I’ll update this thread again once I have more to share from the team.
HI @Donal-Shopify ,
Thanks for the response. Yes the “preview” route is an option, but it’s really slow development-wise compared to the locale which has hot reloading.
As another person mentioned above, there also seems to be a never-ending of errors in the console with the “Collect” endpoint.
I’m running 3.89.0, and getting 401 errors and the /api/collect issue too.
The theme preview isn’t really a solid solution when you’re trying to debug JS etc.
Hi @Donal-Shopify , thanks for following up and checking with the CLI team.
Using the preview URL does avoid the 401, but in practice it’s a pretty big step back for day‑to‑day development. Losing fast local hot reload makes debugging JS and iterative UI work significantly slower, especially on larger themes.
A few additional details that may help the team:
The 401 still occurs on CLI v3.89.0
The browser console also gets spammed continuously with errors hitting the /api/collect endpoint
This happens even on otherwise unchanged themes that were working fine before
Downgrading the CLI hasn’t been reliable across machines
Are there any short‑term alternatives the team can suggest that preserve local hot reload? For example:
A CLI flag or env setting to bypass the failing auth check
A known stable CLI version that reliably avoids this regression
A temporary way to disable or stub the collect calls during shopify theme dev
Happy to provide logs or test a patched build if that helps narrow things down.
Appreciate the transparency so far, and looking forward to any updates.
Thanks!
Yeah this workaround isn’t a great one seeing as we lose hot reloading.
For me theres 3 issues. One the 401 unauthorized (but I don’t experience that on 3.88). Second is the noise from /collect CORS issue. And third is the 429 rate limiting warning I get. Really I don’t see a reason why the rate limit is stricter in dev. If anything, it should be more laxed to allow for us to test add to cart, update cart, etc…
Also curious why bug reports aren’t tracked on Github and we’re brought here. Would be nice to see actual bug reports and be able to follow their progress.
Hey folks - fully hear you re: not having access to local hot reload when using the preview URL. We’re investigating a full fix for this, will update here as soon as there’s more to share.