Focusing on managing products, variants, and collections through the API.
As per subject, on occasion I'm logging 404/Not found responses when attempting to set inventory levels for certain variants. However, when retrying the exact same operation at a later date, it goes through as expected.
Since the exact same IDs (location, variant, etc) are being used, I presume this is a problem on Shopify's end.
Here's an example dated 26.04.2023, X-Request-ID: 8e459432-729e-4d06-a895-4380ce3391a2
Same exact inventory level update operation retried today, 05.07.2023, it went through.
I see here on the forums that this issue has been noticed and reported by others (using GraphQL). If someone from Shopify could kindly (and quickly) look into it as it's a pretty serious one as I'd rather not go through the trouble of writing code to "double check" every single operation / API call.
Hi - thanks for flagging this unexpected behaviour. We're looking into this on our end and will update here asap.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks, Liam.
I'm glad this is being acknowledged in the first place. Perhaps you could look into this as well (malformed JSONs being returned): https://github.com/Shopify/shopify-api-php/issues/231
Back to the topic at hand, based on my logs, this 404 is being returned in 0.65% of cases and, judging from a quick search I did here on the forums, it isn't limited to inventory level setting.