I want to update the images for my products in bulk and use the GraphQl API productUpdateImage mutation from Shopify for this purpose.
I have noticed that productImageUpdate API does not always work. The first time the update (calling productImageUpdate) and undo (calling productImageUpdate) works.
If I repeat the step then somehow I am always the same image and that the point I guess it is not updating the image.
I don’t get any errors. Is previous data held somewhere in the cache at Shopify and just gives me the last data out?
Can it be that if I call the mutation function very often it does not react? Maybe I need to bounce my calls?
Shopify increments this version number whenever an asset is changed, and this causes the client requesting the resource to download it again from the CDN instead of using their cache. If this parameter is omitted, that would explain why you’re seeing an old (cached) version after a 2nd attempt to update.
If you’d like us to take a closer look, please provide the X-Request-ID values for a set of calls that you experienced the issue with. As well please provide screenshots to show the asset that was served.
Our logs aren’t showing any errors for those requests, in all 3 cases it shows the images were downloaded and updated successfully.
I also tested by making calls manually to my test store, but wasn’t able to replicate. Is this app currently setup so I can install it on a test store? If so please provide instructions or an install URL, and I’ll continue testing. If it’s not setup somewhere that allows installing it on my test store, please provide a test shop URL or shop_id, and let me know if it’s ok to do some tests there. Feel free to send any info in DM if you prefer.
I have tweaked my app a bit, but the problem still seems to exist.
That would be cool if you look at it too. I could not find any error in the code until now. But will have another look at the request in the browser where the error occurs.
What do you mean you are not getting a response from endpoint? It is strange but from my end it is working. Can you please record your screen or make a screenshot of it and share it here? Maybe there is an error in your browser console, network request status (if you are not getting any response) etc..
Don’t know what I need to do from my end it is working and I tested it in private mode and Chrome or Mozilla.
Sorry there was a network issue on my end. I’m able to connect now, but I can’t install since the app hasn’t been reviewed. Do you mind if I use your test store to replicate?
Because I am currently temporary blocked: Reasons the app would not square and no tasks appear under Scheduled tasks. . From my end it is working as you can see on video..
Just let me know what you need for replicate my test store..