Describe the bug
When parsing a stream that ends with http.MaxBytesError (created with http.MaxBytesReader), sonic does not propagate it and "swallows" it instead.
To Reproduce
- Parse a HTTP body passed through
http.MaxBytesReader
- If the body is too large, there's an error
Expected behavior
The error should be http.MaxBytesError, but it's a generic one instead
Describe the bug
When parsing a stream that ends with
http.MaxBytesError(created withhttp.MaxBytesReader), sonic does not propagate it and "swallows" it instead.To Reproduce
http.MaxBytesReaderExpected behavior
The error should be
http.MaxBytesError, but it's a generic one instead