You are viewing a single comment's thread. Return to all comments →
throw er; // Unhandled 'error' event
TypeError: Invalid non-string/buffer chunk
at validChunk (_stream_writable.js:215:10)
at SyncWriteStream.Writable.write (_stream_writable.js:244:12)
at solution (solution.js:74:20)
at ReadStream. (solution.js:56:5)
at emitNone (events.js:91:20)
at ReadStream.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Yes I am getting the exact same error. It's so frustrating. I tried on my local system and the code is working. Did you manage to get it to work here?
use .toString() with Java script variable you are trying to return. it worked for me.
Thanks, that works!