You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Can't send encoded body with GZipCodec().encode(utf8.encode( json.encode(body), ))
but http can To Reproduce
Steps to reproduce the behavior:
Encode body with GZipCodec().encode(utf8.encode( json.encode(body),))
Make post request
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information):
Flutter version: 2.10.4
IDE: VS Code
http_interceptor: ^2.0.0-beta.5
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hey @zhukeev this seems to be an exception coming straight from the SDK, not a problem from the library. In any case, digging a bit online I found this SO thread that might help you solve your issues.
As a bonus, I've added a test for checking GZip compression in #114 . This test takes the approach recommended in the thread I just linked and worked like a charm for fixing the exception you were having (from what I could reproduce).
As this is not exactly the library's fault, I'll close the issue and pin it for others in the future.
Describe the bug
A clear and concise description of what the bug is.
Can't send encoded body with
GZipCodec().encode(utf8.encode( json.encode(body), ))
but http can
To Reproduce
Steps to reproduce the behavior:
GZipCodec().encode(utf8.encode( json.encode(body),))
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information):
http_interceptor: ^2.0.0-beta.5
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: