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 = shopify.Image()
image.product_id = product_id
image.alt = img['alt']
image.save() #Error occurred here
What could be the problem here?
Go to the solution
This is an accepted solution.
Ohh, the cause was actually quite simple.Indeed, the error occurred with image.save(), butwhen 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.
View solution in original post
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
Make the shift from discounts to donations, and witness your business not only thrive fina...
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...