Skip to content
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

Max buffer length exceeded: attribValue #252

Open
gobinath2389 opened this issue Mar 21, 2022 · 1 comment
Open

Max buffer length exceeded: attribValue #252

gobinath2389 opened this issue Mar 21, 2022 · 1 comment

Comments

@gobinath2389
Copy link

gobinath2389 commented Mar 21, 2022

I am reading a big file(10 Gb) using SAXStream. I am running into this error below.

I tried increasing the sax.MAX_BUFFER_LENGTH = 64 * 1024 to sax.MAX_BUFFER_LENGTH = 64 * 1024 *10 But still no luck with this issue.

Error: Max buffer length exceeded: attribValue Line: 0 Column: 172807703 Char: at error (/Users/node_modules/sax/lib/sax.js:651:10) at checkBufferLength (/Users/node_modules/sax/lib/sax.js:125:13) at SAXParser.write (/Users/node_modules/sax/lib/sax.js:1505:7) at SAXStream.write (/Users/node_modules/sax/lib/sax.js:239:18) at PassThrough.ondata (_stream_readable.js:716:22) at PassThrough.emit (events.js:315:20) at PassThrough.EventEmitter.emit (domain.js:483:12) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:271:9) at PassThrough.Readable.push (_stream_readable.js:212:10) Emitted 'error' event on SAXStream instance at: at errorOrDestroy (internal/streams/destroy.js:108:12) at SAXStream.onerror (_stream_readable.js:752:7) at SAXStream.emit (events.js:315:20) at SAXStream.EventEmitter.emit (domain.js:483:12)

@donglinkai
Copy link

try to set the following code

const sax = require('sax');
sax.MAX_BUFFER_LENGTH = Infinity;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants