Membrane API Gateway returns 400 Bad Request with a link to this page when the echo plugin cannot read the request body the client sent. The body is incomplete or broken, so the gateway rejects the request.
The response contains the status 400, the problem type https://membrane-api.io/problems/user and a link to this page. The type user means that the client or the network between the client and the gateway caused the problem. The request had no Content-Encoding, so this is not a decompression problem. The status stays 400 even when the body is first read in the response flow.
The client closed the connection or stopped sending before the body was complete. With a Content-Length header, the detail reads Body ended N bytes before the declared length of M ….
A request with Transfer-Encoding: chunked has malformed chunks or ends before the final chunk.
Another network error occurred while the body was being read. The detail field carries the root cause message.
Content-Length that matches it, or with valid chunked framing.By default, Membrane runs in development mode and adds details to error responses that help you find the problem. These details may reveal information about your setup. In production, turn them off:
configuration:
production: trueconfiguration: production: true
Add the configuration document to your apis.yaml and separate it from the APIs with ---.
Configuration reference:
Still stuck? See the troubleshooting guide or ask on GitHub Issues. For commercial support, contact info@predic8.de.