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

RangeError: Index out of range #80

Open
chetanjrao opened this issue May 12, 2018 · 2 comments
Open

RangeError: Index out of range #80

chetanjrao opened this issue May 12, 2018 · 2 comments

Comments

@chetanjrao
Copy link

RangeError: Index out of range
at checkOffset (buffer.js:972:11)
at Buffer.readUInt8 (buffer.js:1010:5)
at readRow (C:\Users\Chethan\node_modules\zongji\lib\rows_event.js:109:47)
at UpdateRows._fetchOneRow (C:\Users\Chethan\node_modules\zongji\lib\rows_event.js:146:12)
at UpdateRows.RowsEvent (C:\Users\Chethan\node_modules\zongji\lib\rows_event.js:65:27)
at new UpdateRows (C:\Users\Chethan\node_modules\zongji\lib\rows_event.js:137:13)
at BinlogHeader.parse (C:\Users\Chethan\node_modules\zongji\lib\packet\binlog_header.js:47:23)
at Protocol._parsePacket (C:\Users\Chethan\node_modules\zongji\node_modules\mysql\lib\protocol\Protocol.js:262:12)
at Parser.write (C:\Users\Chethan\node_modules\zongji\node_modules\mysql\lib\protocol\Parser.js:74:12)
at _combinedTickCallback (internal/process/next_tick.js:131:7)

@wlayton2
Copy link

wlayton2 commented May 15, 2018

I've also experienced this error this week. When the error was thrown, the library appeared to be processing events which had occurred in the 'timezone' related tables in the mysql schema. I wasn't interested in events in this schema so configured the listener to exclude it. The error is no longer being thrown.
listener.start({ includeEvents: ['writerows', 'tablemap', 'updaterows'], excludeSchema: { mysql: true } });

I'm using MySql 5.7.20 in Docker (image mysql:5.7).

@rodrigogs
Copy link

Checkout my fork, I turned It into an error event instead of crashing the lib

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

3 participants