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
it occured to me too, where msgpack.encode(null) works but msgpack.createEncodeStream().write(null) throws a error.
TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream at validChunk (_stream_writable.js:261:10) at EncodeStream.Writable.write (_stream_writable.js:297:21) at Object.<anonymous> (C:\Users\jim\测试msgpack流.js:9:14) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:829:12) at startup (internal/bootstrap/node.js:283:19) Emitted 'error' event at: at errorOrDestroy (internal/streams/destroy.js:107:12) at validChunk (_stream_writable.js:266:5) at EncodeStream.Writable.write (_stream_writable.js:297:21) [... lines matching original stack trace ...] at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
decoding a whole buffer works fine:
vs
The stream is then closed.
The text was updated successfully, but these errors were encountered: