-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ReadHuffmanCode] invalid num_codes or space in decompress method #31
Comments
As I wanted to use just decompress method hence, I avoided this issue by: import decompress from 'brotli/decompress' Now, I got into another issue: index.js:1 Error: [ReadHuffmanCode] invalid num_codes or space
at ReadHuffmanCode (decode.js:323)
at HuffmanTreeGroup.push../node_modules/brotli/dec/decode.js.HuffmanTreeGroup.decode (decode.js:392)
at BrotliDecompress (decode.js:747)
at BrotliDecompressBuffer (decode.js:583)
at _callee$ (appActions.js:104) I'm pretty sure there is no space in the compressed string. |
Had the same issue so ended up using the nodejs builtin zlib library |
For me, I found that I got this error when I inadvertently passed an I used |
compress
decompress
|
I ran into this as well and the solution was to pass |
I'm using brotli with react version 16.13. By just import brotli in react component file shows this error.
This is the error stack:
Brotli version - 1.3.2
The text was updated successfully, but these errors were encountered: