App reviews, troubleshooting, and recommendations
Currently, we are registering new products and updating existing products via the Shopify API. However, all of a sudden, we can no longer register new products and the following error is occurring.
pyactiveresource.connection.ResourceNotFound: Not Found: https://[shop-ulr].myshopify.com/admin/api/2023-01/images.json
In order to identify this problem, we checked the code one by one. It seems that the error occurs when the following code is executed.
image.save()
image = shopify.Image()
image.product_id = product_id
image.src=img['src']
image.alt = img['alt']
...
image.save() #Error occurred here
What could be the problem here?
Solved! Go to the solution
This is an accepted solution.
Ohh, the cause was actually quite simple.
Indeed, the error occurred with image.save(), but
when I checked the image, it didn't contain any elements.
Furthermore, tracing back the cause, it seems that product.save() was not done correctly,
and it was because there was no product that the image couldn't be set.
This is an accepted solution.
Ohh, the cause was actually quite simple.
Indeed, the error occurred with image.save(), but
when I checked the image, it didn't contain any elements.
Furthermore, tracing back the cause, it seems that product.save() was not done correctly,
and it was because there was no product that the image couldn't be set.
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023