My Next.JS site images often fail to load (seems to be intermittent), with a status 500 error. There are some similar open topics/threads around, but they appear to be caused by unrelated factors, such as local builds etc.
Additional Info:
Built/Deployed with Netlify from linked Github repo
This error occurs on all asset paths fetched with netlify-edge-functions (html, js, json…). It is totally random and not reproducable. It is likely a problem with the deno infrastructure as metioned here: Deno Task start fails when NPM registry can't be found - PullAnswer
Can you please share your Netlify site name as well as your repository? If you cannot share your repository, your netlify.toml as well as the folder with your images would be beneficial. I will bring this to our team to investigate further for you!
Hi @hillary
Thanks, the site name is: rvgmiller
The repo is private and the images are coming from Sanity. Also, I’m not using a netlify.toml for this site.
thanks! I have shared the relevant information with our team, and we have an open issue investigating. I will follow up here once we have additional details. Thanks!
Good news, I believe that our dev team rolled out a fix about 13 hours ago. Would you let us know if you see any further occurrences, please, @rvgmiller ?
Thanks @fool , but unfortunately it is still happening. I have taken a quick look and noticed ERROR Task timed out after 10.03 seconds in the _IPX Function Log. I’m unsure if this is the same issue as before, or something new.
On a side note - I have been seeing some noticeable general latency, including initial server responses regularly over 3 seconds. Is that in any way related?
The issue you’re seeing now is un-related to the above thread. To solve this:
Either disable AVIF or WebP as they’re resource-hungry transforms and can take long.
Try to keep the source image in the minimum possible size. For example, if you need a 1000px image, keeping a 5000px source image is not a good idea as it will take time to process.
On Pro and above plans, we can raise the limit to 26 seconds, however that would also mean that it would take up to 26 seconds for each image to load.
The general latency might or might not be related to this. To confirm, we’d need a HAR file recording,