Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RangeError: Invalid typed array length #71

Open
harter123 opened this issue Mar 29, 2016 · 1 comment
Open

RangeError: Invalid typed array length #71

harter123 opened this issue Mar 29, 2016 · 1 comment

Comments

@harter123
Copy link

RangeError: Illegal offset: 0 <= 2892 (+12) <= 2892
at RangeError (native)
at module.exports.ByteBufferPrototype.readUTF8String (d:\interfaceSystem\interfacesystem\node_modules\protobufjs\node_modules\bytebuffer\dist\bytebuffer-node.js:2022:27)
at module.exports.ByteBufferPrototype.readVString
(d:\interfaceSystem\interfacesystem\node_modules\protobufjs\node_modules\bytebuffer\dist\bytebuffer-node.js:2114:24)

why it throws this error?

@dcodeIO
Copy link
Member

dcodeIO commented Mar 29, 2016

It tried to read 12 bytes (here: the contents of a string) starting from offset 2892, but there aren't enough bytes left to read. In such a case, the buffer usually has become truncated somewhere on its way.

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

No branches or pull requests

2 participants