"failed to process https://images.prismic.io/[...].jpg?auto=compress,format - RequestError: Request timed out"

For the past 24h I've been unable to build my Gatsby project, due to the above error occurring for a number of images.

I've found a similar post here: Image requests timing out but it was caused by an imgix outage, but imgix seems to work fine now.

If I open the same image URL on a browser it loads without any problems.

Is there any kind of rate limiting? What else can I try?

1 Like

Hi Manuele,

Welcome to Prismic community, I will try to help you on this.

Can you share with me (in a direct message if necessary) the name of your repository as well as a link to the problematic image so that I can debug this?

Looking forward to your reply,
Fares

1 Like

Hi again,

I’ve received your direct message and I thank you for that,

I’ve checked with our production team, and most likely the issue is related to the usage of Gatsby image library

In fact Gatsby image does the same job as what Imgix does that Prismic use.

And as a result you double the processing time that result in some random timeouts.

Furthermore you can replace Gatsby image library with this Imgix library if you need some advanced processing that is in our opinion more efficient as it does it’s processing on rendering time and Imgix caches the result for you.

Please let me know if that doesn’t solve the problem for you,
Fares

Thank you for your reply.

Switching to Imgix is not feasible for us in this case. But searching on Gatsby’s own github issues I came across a similar problem and tried this:

GATSBY_CONCURRENT_DOWNLOAD=10 gatsby develop

and it seems to be working.

I suspect that the random timeouts happen because Gatsby is trying to download 300 images all at the same time from the server, and something breaks down somewhere?

Anyway hopefully this solves it!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.