I’ve been messing with this for hours now. Certain product images will fail with 422 status, and I can’t identify any rhyme or reason. For example:
422
https://X:X@my-store.myshopify.com/admin/api/2022-04/products/7095854825652/images.json
{'User-Agent': 'python-requests/2.27.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '95', 'Content-Type': 'application/json', 'Authorization': 'Basic 'Y'}
b'{"image": {"src": "https://www.website.com/cdn/cs/set/assets/blta3d39bc2baca3d5f/42115_alt7.jpg"}}'
200
https://X:X@my-store.myshopify.com/admin/api/2022-04/products/7095854825652/images.json
{'User-Agent': 'python-requests/2.27.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '95', 'Content-Type': 'application/json', 'Authorization': 'Basic 'Y'}
b'{"image": {"src": "https://www.website.com/cdn/cs/set/assets/blt3fc5cfbfbf54f990/42115_alt8.jpg"}}'
Any thoughts are GREATLY appreciated!