Product valid jpg upload says Image: File extension doesn't match the format of the file

Hi,

Do you know if there is a way to clear this cache with the API call?

I’ve tried running https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/fileAcknowledgeUpdateFailed which in theory should “Acknowledges file update failure by resetting FAILED status to READY and clearing any media errors.” but I’m getting this error instead:

{“data”:{“fileAcknowledgeUpdateFailed”:{“files”:null,“userErrors”:[{“code”:null,“field”:[“fileIds”],“message”:“File with id gid://shopify/MediaImage/XXX is not in the READY state.”}]}},“errors”:null

I’ve also tried to update this image with https://shopify.dev/docs/api/admin-graphql/2023-07/mutations/fileupdate but all I get is:

{“data”:{“fileUpdate”:{“files”:null,“userErrors”:[{“code”:null,“field”:[“files”],“message”:“Non-ready files cannot be updated.”}]}},“errors”:null}

Any other possible solutions?