Error AtlasError Documentation and Resolution

AWS request is malformed at the HTTP level

MalformedHttpRequestException

AWS rejected the request because the HTTP request itself is malformed, such as an invalid body encoding or decompression mismatch.

MalformedHttpRequestExceptiongeneral
MalformedHttpRequestException
  • The request body encoding does not match the declared HTTP headers.
  • Compression or decompression settings are invalid.
  • A proxy or client malformed the request before it reached AWS.
  1. Review Content-Encoding and related HTTP headers.
  2. Make sure the request body matches the declared compression or encoding format.
  3. Test the request path without intermediaries if a proxy may be altering it.
AWS Common Errors
AWS MalformedHttpRequestException: causes and fixes | Error Atlas