502 Bad Gateway STREAM response

Using tus javascript, we are occasionally getting this error, but sometimes it seems to work. about 50% of the time. which is quite weird

tus: unexpected response while uploading chunk, originated from request (response code: 502, response text: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>Cloudflare</center>
</body>
</html>
)

:wave: @globleedev,

I would recommend contacting Cloudflare and if it is possible to capture a RayID or other diagnostic/ debug information to include that as well.

-OG