I’m building a website that accesses an API powered by Directus, deployed on the DO App Platform. When I load a page with a gallery of images, I often run into 504 and network changed errors for image and XHR requests. I have a test page live on https://fotostrips.nl/beta/test-requests that loads a set of 200 images, which usually triggers the errors for one or more images.
The response headers of a failed image request include:
I don’t see any logs about failed requests in my app’s runtime logs. Directus only shows logs for 200 requests, which leads me to believe it’s not a Directus issue, but a DO issue. How can I find out what’s going on?
Increasing the RAM doesn’t seem to have any effect. And the 504 error, which is usually described as a timeout, happens sometimes instantly for some requests, so not necessarily after a certain time interval.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.