Cloudflare Tunnel 502 - POST/PUT/PATCH request without Body

When a POST or PUT or PATCH request is made through the tunnel without a Body the immediate next request through the tunnel (does not matter what source, different computer/ip etc) errors 502 with console msg: “Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF”. Then the request after that works. If you send another POST/PUT/PATCH without body the next request again will 502. Without the tunnel it works fine.

Any POST/PUT/PATCH request without Body will cause the next request to 502 error. If you wait 10 seconds after the POST/PUT/PATCH request it will work fine without error. There must be some bug with Cloudflare Tunnel

1 Like

Thanks for reporting this.

We’ll follow up in POST/PUT/PATCH requests with no body causing 502 errors · Issue #509 · cloudflare/cloudflared · GitHub

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.