Intermittent 502 Errors in Vendure Admin Panel
dtrejogo
PROOP

a year ago

Hi everyone,

I’m experiencing intermittent errors in the admin panel, and I’m unsure what might be causing them. Here’s the error message I’m seeing: (pop up red message at the top right)

`` core.mjs:6531 ERROR ApolloError: Http failure response for https://admin.mywebsite.com/admin-api?languageCode=en: 502 OK ``

Additionally, the back office logs show similar issues.

responseDetails: "failed to forward request to upstream: connection closed"

The application is running on Railway (Pro Plan).

This error occurs randomly across different sections of the admin panel—for example, when clicking to view a product or changing the status of an order.

What’s strange is that if I retry the same operation, it eventually works.

Could this be related to insufficient resources on the hosting platform, or might there be another underlying issue? Any guidance would be greatly appreciated!

Thank you in advance!

1 Replies

brody
EMPLOYEE

a year ago

Hello Danny,

Just wanna clear up something first, this project is running on a Hobby account incase you didn't know.

As for the 502's -

Looking at the metrics for the app, there plenty of headroom with no spikes, so its not resource limitations.

But looking at the deploy logs, there are many many errors, perhaps that has something to do with the 502's you are seeing?

Either way, the 502 means your application failed to respond to the HTTP request, as for why exactly is something you would need to add a lot of verbose logging and tracing to your application to find out, our platform simply run your code and has no viability into what the code does or doesn't do.

Best,
Brody


Loading...