Skip to content

Unhandled Exception: FormatException: Unexpected extension byte (at offset 1) #113

@zhukeev

Description

@zhukeev

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:

  1. Encode body with GZipCodec().encode(utf8.encode( json.encode(body),))
  2. Make post request
  3. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions