Error: 'buffer error' that probably came from NodeJS #50146
-
I have this issue in isomorphic-git isomorphic-git/isomorphic-git#1833 The library throw an error that don't appear in the source code. The error is a string and it's probably is throwed by NodeJS. I was searching for the string (GitHub didn't show anything so it's useless) it points to V8: z_const char * const z_errmsg[10] = {
(z_const char *)"need dictionary", /* Z_NEED_DICT 2 */
(z_const char *)"stream end", /* Z_STREAM_END 1 */
(z_const char *)"", /* Z_OK 0 */
(z_const char *)"file error", /* Z_ERRNO (-1) */
(z_const char *)"stream error", /* Z_STREAM_ERROR (-2) */
(z_const char *)"data error", /* Z_DATA_ERROR (-3) */
(z_const char *)"insufficient memory", /* Z_MEM_ERROR (-4) */
(z_const char *)"buffer error", /* Z_BUF_ERROR (-5) */
(z_const char *)"incompatible version",/* Z_VERSION_ERROR (-6) */
(z_const char *)""
};
Not sure why zutil.c is twice in the source code. Do know what this error is about? |
Beta Was this translation helpful? Give feedback.
Answered by
bnoordhuis
Oct 12, 2023
Replies: 1 comment
-
Z_BUF_ERROR usually means the input or output buffer is empty (ex: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jcubic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Z_BUF_ERROR usually means the input or output buffer is empty (ex:
zlib.inflateSync(Buffer.from([]))
). It's non-fatal, you can resume afterwards.