Open aheissenberger opened 4 years ago
Any updates on the fix for this issue? I'm stuck trying to parse a large file and I encounter this error about 2/3 of the way through. All the data after this error only includes the indexed keys.
Is there a workaround in the meantime? Thanks!
It appears that when this happens and the headers are replaced by column indexes, the 'end' event is never generated. I wrote a function to re-apply the headers once this problem is encountered, but now my code hangs when the end of the file is reached. It never enters the code block for the .on('end') event.
I am seeing this too
Has this bug been fixed in the version of CSV parser: 2.3.3 When using the version of CSV parser: 2.3.3, this problem still occurs
Expected Behavior
headers created with "mapHeaders" should be used for all valid records, even for records with to many or to less columns
Actual Behavior
How Do We Reproduce?
https://github.com/aheissenberger/csv-parser?organization=aheissenberger&organization=aheissenberger