tiagohm / brotli

Pure Dart Brotli decoder
https://pub.dev/packages/brotli
MIT License
11 stars 0 forks source link

Unused bytes after end error #3

Open jestintab opened 2 years ago

jestintab commented 2 years ago

Hi I am getting below error when decoding an api. flutter: ℹ️[4:12:36-1236ms]Unused bytes after end flutter: ℹ️[4:12:36-1236ms]#0 _checkHealth package:brotli/…/decoder/decode.dart:1855 flutter: #1 _decompress package:brotli/…/decoder/decode.dart:1528 flutter: #2 _decodeToSink package:brotli/…/decoder/decode.dart:2099 flutter: #3 _decode package:brotli/…/decoder/decode.dart:2078 flutter: #4 BrotliDecoder.convert package:brotli/…/decoder/decode.dart:2121 flutter: #5 BrotliCodec.decodeToString package:brotli/…/decoder/decode.dart:205

Other categories from the same API are working. Any help is appreciated. Thank you.

fzyzcjy commented 1 year ago

Hi, it seems that this bug is reported to happen recently as well https://github.com/cfug/dio/issues/1782#issuecomment-1528962806. @tiagohm May I know whether this will be fixed? Thank you!

tiagohm commented 1 year ago

Hi guys!

Can anyone please provide an example that reproduces the error? Thanks!

fzyzcjy commented 1 year ago

/cc @amondnet (from https://github.com/cfug/dio/issues/1782#issuecomment-1528962806) - Hi could you please provide a sample, thanks!