502 on file upload

createtodayorg
PROOP

25 days ago

Hi! I'm facing quite odd issue, when uploading file bigger than 10-15MB, it throws connection returning 502. And I'm sure not the code is the problem, cause I have no panics, no logs, it does not even get to the handler.

I have no cloudflare or anything, no proxy, no load balancer. I've seen that this case is not unique (like this one: https://station.railway.com/questions/increase-max-file-upload-with-php-nixpac-8e47f9b1)

We're already started rewriting to presigned urls, but feels like there's a bug or something in railway

Here's the http log:

requestId:

"J2OKuUuXQKmwZi_-m3z_FQ"

timestamp:

"2025-10-22T12:34:31.853755761Z"

method:

"POST"

path:

"/project/media"

host:

""

httpStatus:

502

upstreamProto:

"HTTP/1.1"

downstreamProto:

"HTTP/1.1"

responseDetails:

""

totalDuration:

110441

upstreamAddress:

"http://[fd12:2fe2:4e73:0:1000:4c:69b2:dd08]:8080"

clientUa:

"PostmanRuntime/7.49.0"

upstreamRqDuration:

110441

txBytes:

11

rxBytes:

16810891

srcIp:

"5.129.236.84"

edgeRegion:

"europe-west4-drams3a"

upstreamErrors:

""

$10 Bounty

3 Replies

Railway
BOT

25 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


25 days 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 brody 25 days ago


fra
HOBBYTop 10% Contributor

25 days ago

can you add logs to you app to improve visibility?

do you receive the request in the app?

can you see the app processing the request?

do you have any timeout in the app?


monuit
PROTop 10% Contributor

23 days ago

perhaps youre running into a timeout issue? this similar thread had an issue and recommended going to websockets instead of HTTP. otherwise, your logs aren't sufficient to indicate what's the issue


Loading...
502 on file upload - Railway Help Station