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

解析错误 #3

Open
zhangweihong opened this issue Sep 9, 2022 · 2 comments
Open

解析错误 #3

zhangweihong opened this issue Sep 9, 2022 · 2 comments

Comments

@zhangweihong
Copy link


Connect cancal server occur error RangeError: index out of range: 13548 + 1 > 13548
at indexOutOfRange (D:\Download\canal-nodejs-master\node_modules\protobufjs\src\reader.js:13:12)
at BufferReader.skip (D:\Download\canal-nodejs-master\node_modules\protobufjs\src\reader.js:344:23)
at BufferReader.Reader.skipType (D:\Download\canal-nodejs-master\node_modules\protobufjs\src\reader.js:358:18)
at Type.Messages$decode [as decode] (eval at Codegen (D:\Download\canal-nodejs-master\node_modules@protobufjs\codegen\index.js:50:33), :19:5)
at Function.decode (D:\Download\canal-nodejs-master\src\proto-util.js:55:28)
at Function.deserializer (D:\Download\canal-nodejs-master\src\canal-message-deserializer.js:15:42)
at D:\Download\canal-nodejs-master\src\simple-canal-connector.js:170:66
at processTicksAndRejections (internal/process/task_queues.js:93:5)

@zhangweihong
Copy link
Author

image
看了下buffer最后几位只要都是0就会报解析错误,在 D:\Download\canal-nodejs-master\node_modules\protobufjs\src\reader.js
343行修正>= 为>就可以正确解析

@marmot-z
Copy link
Owner

感谢你的反馈

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