10 months ago
I have a Next.js project that connects to a Payload CMS using MongoDB, all hosted on Railway. The project includes many static pages generated during build time.
However, the build process frequently fails due to errors on the Payload side.
I don't believe this is a Payload issue, as testing all the APIs with Postman consistently works without problems.
I often encounter the following error:
⨯ Upstream image response failed for
https://backoffice.quattrostudio.eu/media/same_sex_wedding_amalfi-006.jpg
503Error fetching weddings:
[AxiosError]: Request failed with status code 503
Additionally, on the Next.js side, there are errors related to corrupted JSON files, which I suspect are due to connection losses.
Can anyone help me understand what's wrong?
3 Replies
10 months ago
Unfortunately this appears to be an application level issue and not something we can help with as we don't have observability into what user code is or is not doing
Sounds like you'd need to figure out why backoffice.quattrostudio.eu
is sending a 503 by checking service logs for that domain or adding more verbose logging etc
Sorry can't be more helpful. If you like you can also make this thread public to receive community support on the matter
Thanks,
David
Status changed to Awaiting User Response railway[bot] • 10 months ago
10 months ago
Since it’s working now, can it be related to the issues that Railway had today? Anyway, thank you
Status changed to Awaiting Railway Response railway[bot] • 10 months ago
10 months ago
No. A 503 response from an external URL means the connection/request was successfully sent from our end, so the issue must have been coming from the other end, otherwise the error would be significantly different.