-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"Invalid wire type n" "index out of range: n + 1 > n" #1927
Comments
Incremented city_id tag to 5 and everything works as expected. But this is bad solution. |
Oh wow, that must be a cool bug somewhere. I will try to figure out what's going on, thank you! |
Looking forward to your investigation, such errors could lead to extremely unpredictable behaviour. |
Another recent issue: |
I had the same problem。Change the data type to uint32 and everything works as expected |
i have this issue in my mollysocket docker container: [2024-10-28T03:57:36Z ERROR mollysocket::ws::websocket_connection] Failed to decode protobuf: failed to decode Protobuf message: invalid wire type value: 7 how can i apply the above fix for this? thank you for any help you can provide. |
@pine-serpent |
@alexander-fenster |
protobuf.js version: 7.4.0 It keeps printing the message "invalid wire type 6" type = uint64 How do I solve this? |
@JungminByun |
@KiillThemAll For example, is it okay to change tags? [AS IS] [TO BE] |
protobuf.js version: 7.2.4
imported node module
Different errors on decode by pbjs in case of uint64 value with tags 2 or 3 or 4. With other tags everything is fine.
!Data is sent in binary everywhere and remains the same!
Suppose, something with decoding procedure.
Errors:
"Invalid wire type n"
"index out of range: n + 1 > n"
This error have been mentioned in other issues, but in other circumstances and no clues so far.
#987
#1297
#907
#991
#1049
#1063
and others
To reproduce:
Proto message:
Generate by pbjs with long!
Generated decode func:
Example stack trace:
index out of range: 18 + 1 > 18
RangeError: index out of range: 18 + 1 > 18
at indexOutOfRange (http://localhost:8080/js/chunk-vendors.js:17476:12)
at Reader.skip (http://localhost:8080/js/chunk-vendors.js:17807:23)
at push../node_modules/protobufjs/src/reader.js.Reader.skipType (http://localhost:8080/js/chunk-vendors.js:17821:18)
at Function.decode (http://localhost:8080/js/app.js:5454:20)
at Function.decode (http://localhost:8080/js/app.js:5586:63)
The text was updated successfully, but these errors were encountered: