Headless commerce and custom storefronts with Shopify APIs and SDKs
Hi, In the frontend I'm using React and when I try to add product with add.js and axios, the product is added but, I'm getting a notice.
[shop_events_listener] Error in handleXhrDone: Inconsistent IDs between server response and request payload
I have searched a lot but don't found any solution. Here is my code:
let data = { items: [{ quantity: 1, id: variantId,//comes from product }] } axios.post('/cart/add.js', data ) .then(res => { console.log(res); }).catch(error => { console.log(error.response.data.message) });
Still finding solution for this
Any luck with this? This is happening to me too.
No, haven’t found any solution 😞
Any luck with finding the cause or a solution? I'm getting this too and it appears to be the cause of a bug I'm trying to fix!
Thanks.
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023