I'm investigating problems with PapaParse failing with truncated remote files - these manifest as parse errors, but in fact it seems to be that the file is being chunked and the parser only sees the first chunk, which is invalid because the last line is cut in two. (I'm parting with headers).
I'm investigating problems with PapaParse failing with truncated remote files - these manifest as parse errors, but in fact it seems to be that the file is being chunked and the parser only sees the first chunk, which is invalid because the last line is cut in two. (I'm parting with headers).
Anyway, to test that out independent of my personal case, I tried the demo here: https://www.papaparse.com/demo
And that seems to have problems of its own.
Plaform:
--safe-mode
)To replicate:
Expected results
Parsing the large file should succeed with no errors, whatever options are selected.
Actual results
Output in console:
Variations
A similar output appears when run with only "Stream" checked.
With only "Header row" checked, a different error, which looks to me like the file is being truncated:
With neither - succeeds with no errors.