Closed SidNewman closed 7 months ago
Hey there @SidNewman sorry for the delay (busy end of the year over here)!
This definitely sounds odd. A 422
error is not something we return anywhere in the product-update
API route, which tells me maybe something is malformed coming from Shopify when the webhook fires? Without more details it's hard to understand what a solution could be.
Unfortunately, I won't be working on updating HULL until the new year, and I don't have plans to continue to maintain a custom sync function in the next release.
Instead I'll be opting to use the Sanity Connect app alongside the new hydrogen-react library.
Going to close this for now, but feel free to follow-up if more details come to light about the issue you're experiencing! ๐ค
Hi there,
I've got a headless build which is awesome, its been live for over a year now ๐
Recently the products syncs seems to have stopped working / they only sometimes work which is quite odd.
Ive found that creating a product from scratch syncs fine (80% of the time), but updating any of the products just doesn't work. Or I can get it to work on some updates, however i'm not sure what fields are triggering the update if that makes sense.
Ive had a look at my server logs and it looks like i'm getting a 422 error - just not sure what to do with it:
Error: Request failed with status code 422
The set up is exactly the same, with my live url web-hooks added, ive also tried changing the Shopify API version but no luck.
Any pointers? ๐ค The deletion endpoint is fine too
Heres my shopify-product-update.js file for reference:
TIA