Length Required - HTTP Error 411. The request must be chunked or have a content length.
What is the issue you’re encountering
Requests to our server are being rejected before hitting our server by Cloudflare with HTTP 411
What steps have you taken to resolve the issue?
Posting a topic on the Cloudflare community forum
What are the steps to reproduce the issue?
When we POST requests to our server (or libraries such as SignalR do), they will often POST all the data need in the URL. When this happens, there is no content posted and some libraries do not post a content-length HTTP header.
This was never a problem until a few weeks ago when we began getting intermittent errors (1 out of every 500-1,000 requests) that returned a 411. We checked and our server never received these requests and concluded that they must be rejected by Cloudflare. Cloudflare explicitly states (here: 4xx Client Error · Cloudflare Support docs) that "Cloudflare does not generate 411 for customer websites, we only proxy the request from the origin server. ", but this is manifestly untrue.
Over the last couple of days, this has now starting happening MUCH more often as they are clearly rolling out whatever configuration issue causes this to more and more of their nodes.
We have a standard Azure Virtual Machine. We have changed no configurations on it in the past 2 months and we have no reverse proxies, HTTP firewalls or the like.