big-json
big-json copied to clipboard
Outputs data indefinitely in some cases
I'm trying to write a ~400kb file. Sometimes (I have no idea why and when this happens) the stringifyStream never emits the 'end' event and outputs data indefinitely.
The files get as big as 300MB, I can't find a repeating pattern due to the size of the file.
Is there a null
being sent in the 'data' event of the stringify stream I can use to forcefully cancel the stream?
How am I supposed to debug this? Any hints?