Headless commerce and custom storefronts with Shopify APIs and SDKs
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!
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.
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022