6 months ago
Hi, we have recently moved from GCP to Railway and I would like to be interested in if we can see log somewhere for the Http Proxy provided by Railway, as some of the requests report with HTTP 502, and this was reported by our clients before. It does not happen often, yet I would like to know where the issue lies. The app does not have any struggle with resources, hence I am looking into alternative sources for this other than the app itself.
Project Id: 2a24b8a8-5455-447a-a062-292f785b7f1a
33 Replies
6 months ago
Hello,
You can view the HTTP logs right besides the Deploy logs when you have a deployment open.
@Brody , when I do see a log, how can I figure out why it did have 502? Even today, I saw 2 requests getting this.

6 months ago
Typically you would be able to click them and see the reason, but that's currently unavailable
6 months ago
Yep, response details are currently unavailable
6 months ago
edgeRegion is the region that accepted the request, and then forwarded it to your service in Asia
So is there a way to figure out why this happens? Some sort of log or similar?
6 months ago
^ Not at the moment, no.
But 502's 99% of the time are caused by application level issues.
6 months ago
No, custom proxy.
But 502's 99% of the time are caused by application level issues.
So I would agree with you but you see the upstream address is not logged. Meaning it could route traffic
6 months ago
Provide the request IDs for the 502's and I can check them Tuesday.
6 months ago
We have the enterprise plan that comes with guaranteed response times within 1 hour
6 months ago
Awesome! and I'll let you know what I find Tuesday.
6 months ago
I3f4oXmkQ8m22IwfAQeqjw - connection closed unexpectedlymt6FsGOJRdSE3VaGm3z_FQ - connection closed unexpectedlyboMQYaeVRiaN9CwQn6XIxQ - connection closed unexpectedly
This means that your application is closing the connection that our proxy makes to your application.
Okay, but the logs didn't have upstream specified. Would this not mean the routing failed from edge proxy to the service?
6 months ago
Our infra engineer mentioned that it would be normal during application-level failures like this. The upstream IP would be part of the new response details that have yet to be made available in the UI.
Don't have insights on this that much, as far as I can see the app is available to process, see no reason why it would exit immediately, not even with timeout.
6 months ago
I'm sorry, but we do not have any observability into what your application does or does not do.
@Brody , is there a way to bypass your edge proxy and route traffic directly to the service?
6 months ago
There is not.


