What is - myshopify.com/api/collect = it is in 404 local dev

Short description of issue

Possible API issues with local Dev - not allowing add to cart

Link to Shopify Store

https://127.0.0.1:9292/products/a-product

Reproduction steps

Today I am having some issue locally developing in the cart area of the site.

Live site everything is working as expected no errors. on 127.0.0.1:9292 the add to basket has stopped and console is flagging a 404 on “….myshopify.com/api/collect”.

Is there a know issue at play here or is this a “false positive situation”.

Additional info

POST https://site.myshopify.com/api/collect net::ERR_FAILED
(anonymous) @ b3918e4e0wbf3ac3cepc5707306mb02b36c6m.js:1
window2.fetch @ shop_events_listener-3da45d37.js:1
(anonymous) @ sdk.js:1
sendBeacon @ shopify-perf-kit-3.1.0.min.js:1
checkAndSendSignals @ shopify-perf-kit-3.1.0.min.js:1
processAndSendSignals @ shopify-perf-kit-3.1.0.min.js:1
........timeout @ shopify-perf-kit-3.1.0.min.js:1
requestIdleCallback
i @ shopify-perf-kit-3.1.0.min.js:1
setTimeout
t @ shopify-perf-kit-3.1.0.min.js:1
(anonymous) @ shopify-perf-kit-3.1.0.min.js:1
Promise.then
........timeout @ shopify-perf-kit-3.1.0.min.js:1
requestIdleCallback
i @ shopify-perf-kit-3.1.0.min.js:1
setTimeout
t @ shopify-perf-kit-3.1.0.min.js:1
(anonymous) @ shopify-perf-kit-3.1.0.min.js:1
Promise.then
.....<computed

What type of topic is this

Bug report

Upload screenshot(s) of issue

Further update from local dev console - logged out and back in to make sure that was not the issue

17:02:38 Request » POST 401 /cart/add 121ms

Failed requests to /api/collect can be ignored. It sounds like the real problem you’re hitting is that cart requests are returning a 401. Are there any other error messages?

Ah, looks like the 401 issue is being tracked here: CLI > Theme Dev > cart ajax 401 - #18 by Donal-Shopify

2 Likes

Thank you @Gray-Shopify