I am having the same problem. I updated yesterday to the 3.89.0 version and now when I try add to cart in my local with Shopify theme dev, I ve POST 401 /cart/add
same here - updated to 3.89.0 and i’m getting 401 on POST cart/add, but with previous versions (including 3.89.0) i’m also randomly getting 429 with GET /cart, even if there is a single call on the endpoint.
at current state it’s impossible to work on the local environment which means it’s blocking all development to whatever impacts on the cart!
Interestingly, the issue occurred after updating the 3.89.0, but even when downgrading several versions, the issue isn’t resolved for me.
This seems to be affecting all endpoints. My store, by default set to GBP, is currently defaulting to US currency. In the store’s cookies, localization is setting itself to US and cart_currency is setting to USD even after clearing cookies and data.
When on the storefront, if I use the country selector to change the market, I also get the 401 Unauthorized error, the browser won’t even load the page and tries to navigate to http://127.0.0.1:9292/localization.
It seems to kind of work when using the --verbose flag.
I can now add to cart again but it’s still stuck in the US market. Now if I try to change the market, it directs to this URL: http://127.0.0.1:9292/localization?language_code=en&shpxid=e6a7d728-dae8-4786-a4df-1f3742d06941 and crashes with a 307 Too Many Redirects error.
Same issue. CLI v3.89.0. Something is broken on the local dev server. Works fine on the shopify theme preview url, but not my local preview dev server. I uninstalled 3.89.0 and reinstalled @3.88.1 and gtg. Thanks!
Thanks for the continued patience on this one folks! The team is actively looking into this behavior with the 401s on cart endpoints, in particular with 3.89.0 but I’ve also passed on how downgrading hasn’t always resolved for everyone.
In the meantime, you should be able to get unblocked by using the preview URL instead of localhost for your development loop, or by downgrading to CLI 3.88.0 if you strictly need the local server (this has worked for many, but not everybody who tried it).
I’ll drop another note here once I have more news to share from the team on the fix.
On another store - a weird new symptom I’m seeing is that every product is marked as Sold Out, on the preview URL, the products show correctly as in stock.
Wow. Okay glad i’m not alone. Getting 401 for /cart on version 3.89 and 3.9. Also getting all that noise about CORS issues with the /collect request. Super annoying.