You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a locationId field in my proto which is a fixed64 type, and am trying to request location ID 1234577704719498930
The server is instead receiving a request for location ID 1234577704719499008
Having run into this with some web frontends, my best guess is that Protoman is using a javascript Number internally, which only supports 53 bits, so it's truncating the integer input. This can probably be fixed by using BigInt instead of Number.
The text was updated successfully, but these errors were encountered:
@yesthatguy fixed64 is an ongoing issue for protobuf.js(protobufjs/protobuf.js#1557) and since protoman relies on protobuf.js, this issue will be handled when protobuf.js is handled!
I have a
locationId
field in my proto which is a fixed64 type, and am trying to request location ID 1234577704719498930The server is instead receiving a request for location ID 1234577704719499008
Having run into this with some web frontends, my best guess is that Protoman is using a javascript Number internally, which only supports 53 bits, so it's truncating the integer input. This can probably be fixed by using BigInt instead of Number.
The text was updated successfully, but these errors were encountered: