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.
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023