a month ago
11 Replies
a month ago
What nonsense is going on ?? This is really frustrating.
{
"status": "error",
"code": 502,
"message": "Application failed to respond",
"request_id": "m2wxYYpXQh-eOm4tacI7Nw"
}
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 28 days ago
a month ago
These are the logs in screenshot, not helpful at all. If service is giving 502 it should be down but it is up and running.
Attachments
a month ago
502 means your service encountered an error, not that it's down.
Are there any errors in your deployment logs?
a month ago
Well there's your error lol...
2026-01-17T04:26:30.499622512Z [inf] 2026-01-17 04:26:23 - Error parsing HTTP request header
2026-01-17T04:26:30.499629558Z [inf] Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
2026-01-17T04:26:30.499637197Z [inf] java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xee0x010x000x000xea0x030x030xcb0xbc0xc20x100xbb0x06Q-90x9a|0xb70x110x00"A0x8b0x90(0x1c0x190x18E0x0800x190xbaM0x8d0xa00x070xe9 ]. HTTP method names must be tokens
2026-01-17T04:26:30.499644854Z [inf] at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
2026-01-17T04:26:30.503637004Z [inf] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
2026-01-17T04:26:30.503653336Z [inf] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
2026-01-17T04:26:30.503661279Z [inf] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
2026-01-17T04:26:30.503670623Z [inf] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
2026-01-17T04:26:30.503686652Z [inf] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
2026-01-17T04:26:30.503698815Z [inf] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
2026-01-17T04:26:30.503738013Z [inf] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
2026-01-17T04:26:30.503745809Z [inf] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
2026-01-17T04:26:30.503752369Z [inf] at java.base/java.lang.Thread.run(Thread.java:1583)a month ago
Thats not the actual error, issue was the incorrect port. My Application was running on 9200 and Railway's public domain was mapped to 8080.
Is there any way to see the container logs ?
a month ago
Your deployment logs are the “container” (service) logs.
a month ago
I want the application logs that are getting generated inside container.
a month ago
The logs your application is outputting is the same as your deployment logs.
If you wish to see other kind of logs (system level logs for example), you can do so by SSH-ing into the service.
Simply right click on your service and click on SSH.
You will need Railway CLI to do this.
a month ago
I have the same issue , backend is running , frontend is not reaching backend , error 502 on api/health. Tried every trick on API_PORT , is there away to touch where is the source of error.