-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR_STRING_TOO_LONG #2022
Comments
To be sure, is the |
sheet_to_json is failing |
This is an issue with NodeJS and a hard limit on the size of the resulting output.
/* to_json returns an object-mode stream */
var stream = XLSX.stream.to_json(worksheet, {raw:true});
/* the following stream converts JS objects to text via JSON.stringify */
var conv = new Transform({writableObjectMode:true});
conv._transform = function(obj, e, cb){ cb(null, JSON.stringify(obj) + "\n"); };
stream.pipe(conv); conv.pipe(process.stdout); |
Hey guys, i have this exact problem but it fails at |
Getting this error when trying to read xlsx file (86MB) also tried to stream and buffer but getting the same error. Any idea or direction?
`
const XLSX = require('xlsx');
let filePath = data.filePath;
`
The text was updated successfully, but these errors were encountered: