Errors
malformed-body
The body could not be parsed as JSON, gzip or OTLP.
400 Bad Request · Malformed body · type: https://docs.dlogify.com/errors/malformed-body
When it happens
- The body is not valid JSON.
Content-Encoding: gzipwas sent but the body is not valid gzip.- The OTLP body is not a valid
ExportLogsServiceRequest.
How to fix it
Check that the body is what the Content-Type and Content-Encoding headers say. With curl, send compressed bodies with --data-binary, not --data, which alters binary data.
Example
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json{
"type": "https://docs.dlogify.com/errors/malformed-body",
"title": "Malformed body",
"status": 400,
"detail": "Body is not valid JSON.",
"instance": "req_01j…"
}