PapaParse
PapaParse copied to clipboard
chunk + worker does not work
It loads a single chunk and then calls complete. It shows this error:
{"type":"FieldMismatch","code":"TooFewFields","message":"Too few fields: expected 23 fields but parsed 20","row":29419}
This does not happen if worker is false or if I'm not using chunks.
What I would like to do is load a single chunk, or even just 100 rows, and show that in the UI while the worker loads the rest of the file.
The same issue happens with worker + step
If I change the RemoteChunkSize it changes the number of fields parsed in the last row in the error message.
Ex: "... parsed 20" changes to "... parsed 15" depending on the chunk size
Ah, this may be due to my test server not supporting Content-Range response. I will test more. Would be nice if the error would say that header was missing instead of TooFewFields.