Uploading image to shopify from chatgpt image creator module

I know, i read a lot of topics, but still cant get my head around. shopify giving me error with image. please check screenshots. the funny thing that sometimes the same scenario works, but not every time.





Hi @Agne_Kondratovic and welcome to the Make Community!

I would look at the prompt used to create the image to see if it might might casue ChatGPT to not create the image. If the prompt uses unpredictable input, it’s possible that ChatGPT won’t create the image. It could also be a glitch with the OpenAI API.

You could try to cath the error and ask the scenario to retry up to X times (e.g., 3) and fail only if all three attempts failed.

L

1 Like

here is the step by step from image creation, it receives the prompt, generating image, giving the url, the url in http module used to download the date, image size 3263579 but same error come up in shopify module. if i traying to follow link my self to download the image, is Autentication error. (AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2aac2580-a01e-0010-6455-00f8dc000000 Time:2024-09-06T12:09:50.0104446ZSignature not valid in the specified time frame: Start [Thu, 05 Sep 2024 20:09:45 GMT] - Expiry [Thu, 05 Sep 2024 22:09:45 GMT] - Current [Fri, 06 Sep 2024 12:09:50 GMT])




Screenshot 2024-09-06 at 13.09.03

Hmmm… the access denied error makes me think that the image is protected and can only be downloaded using the correct access token, i.e. whatever was used to generate.

I think what is happening is something like this:

  • You’re authenticating to OpenAI using your OpenAI ID/Key
  • You’re generating the image using the OpenAI ID
  • You’re trying to get the image in Shopify, possibly using the Shopify ID and that’s where it fails.

It could also be because the image is not ready yet when it reaches the Shopify flow. Did you try waiting and retrying the download?

That said, these two discussions might help:

L