-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: RangeError: index out of range: 3 + 109 > 23 #15
Comments
This error happens when we attempt to decode a protocol buffer bytestring into a protocol buffer class instance. Based on this comment, I understand that it means "the library tried to read 109 more bytes according to the protobuf wire format, but the buffer didn't contain these bytes". I have occasionally seen this error in my subway arrivals app. I'd say the frequency is somewhere around 5%, although that's a guess-timate over the course of a few years of usage. The error lasts for a bit (10 minutes), and if I check back later the proto is parsed fine. There is a list of common reasons this error happens, here are my notes on each:
This issue implies that the binary data of the protocol buffer is forced into a string encoding like utf8, which is incorrect to do (link). As far as I understand, the library handles the proto binary data correctly. We use the The
There are updates to the I think we should just do this anyway though. Will open a PR for this.
We call the
This seems unlikely, unless something about the MTA's feed implementation is basically broken. |
I'm going to re-open because I see this in my app every once in a while. |
See Elaniobro/MMM-nyc-transit#56
The text was updated successfully, but these errors were encountered: