#Keep randomly getting 502 bad gateway when uploading files

31 messages · Page 1 of 1 (latest)

jagged drum
#

Does anyone know why this is happening and how to fix it

#

the logs for both nginx and the application handling the uploads are empty

#

so it seems the request doesnt even reach the origin server (how do i verify this?)

#

since there is a 100mb limit the frontend (javascript) puts the files into chunks and uploads every chunk to the backend

#

after a few request i randomly get these 502 bad gateways

#

usually when uploading large files but it doesnt always happen

boreal shell
jagged drum
#

yes ive checked that url but the problem is the error isnt bound to a certain url it sometimes happens with uploading so its very hard to debug

#

but its only with uploading so I really dont understand how this can be a cloudflare issue but i havent got any errors on my side

boreal shell
#

Uploads are buffered at Cloudflare before being sent to the origin, and that specific error almost always means an internal error ocurred within Cloudflare before the request ever reached your server

#

but the problem is the error isnt bound to a certain url it sometimes happens with uploading so its very hard to debug
Understood - so the URLin this case is used by us to search logs on our end so helps to have at least one that it happened on along with the corresponding timestamp. For an upload this would be the URLthat the upload request is being sent to

jagged drum
#

alright ill open a support ticket

#

thanks for the help

boreal shell
#

The documentation says to contact support because this isn't an error that you can debug yourself, it's all on us

#

No problem and sorry you're having issues

jagged drum
#

wait so im at the support ticket in the cloudflare dashboard but theres nowhere where i can enter the full uri for the error

#

just the domain

boreal shell
#

You can add it in the body of the ticket later when you click to add more details

jagged drum
#

wait i think im on the wrong page for this

#

because it just redirects me to cloudflare community

boreal shell
#

It means, really annoyingly, that you're on a plan that doesn't have access to technical support, so we have to do this the hard way

Admittedly I am not in the office currently, so @solemn raven can you help escalate this?

If you are able to post on the community that would help speed things up since it's linked to your account - you don't have to provide all the details there if you don't want them public, just the core issue (like you did here)

jagged drum
#

alright so I make a community post describing my issue?

boreal shell
#

Correct

jagged drum
#

alright

solemn raven
#

Send the link to the community post in this thread once you have it, and we'll escalate it

jagged drum
#

thank you

#

will do

#
Cloudflare Community

I keep getting Bad Gateway errors when uploading large files on cloudflare, the error received is the black and white page that just says “502 Bad Gateway” and “cloudflare” which according to https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors indicates this is an issue on cloudflares...

solemn raven
#

👍
The thread will be checked and responded to soon by Cloudflare's support