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

int32 negative value turn into highest value int32 = 4294967295 #1469

Open
u007 opened this issue Jun 9, 2020 · 6 comments
Open

int32 negative value turn into highest value int32 = 4294967295 #1469

u007 opened this issue Jun 9, 2020 · 6 comments

Comments

@u007
Copy link

u007 commented Jun 9, 2020

Problem description

int32 negative value turn into highest value int32 = 4294967295

Reproduction steps

create a dart grpc server , and send a field with type int32 with value -1 or -16

Environment

  • OS name, version and architecture: Ubuntu 18.04
  • Node version v12.9.1
  • Node installation method nvm
  • If applicable, compiler version [e.g. clang 3.8.0-2ubuntu4]
  • Package name and version grpc 1.24.2

Additional context

my dart running on:
Dart VM version: 2.8.2 (stable)
compiled via dart2native on Ubuntu 20.04 LTS
Package: GRPC 2.0.3

@murgatroid99
Copy link
Member

Are you using the Dart gRPC library? If so, I think your issue belongs in https://github.com/grpc/grpc-dart.

@u007
Copy link
Author

u007 commented Jun 9, 2020

yes, but when i use the dart library to retrieve from dart server, it works properly.
but when on nodejs, the int32 behave that way. double works properly thou...
do i have to file this bug in dart grpc?

@murgatroid99
Copy link
Member

I misunderstood your initial issue. It looks like you're talking about a Protobuf problem. What protobuf library are you using with your Node.js clients?

@u007
Copy link
Author

u007 commented Jun 9, 2020

google-protobuf: "3.12.2"

@murgatroid99
Copy link
Member

I am guessing that that means that you generated the code using the grpc-tools package. Can you try updating to the latest version of that library and re-generating the code. There was a relatively recent release with a newer version of the code generator.

If that doesn't help, google-protobuf and protoc are maintained in this repository: https://github.com/protocolbuffers/protobuf. That is probably the best place to file an issue about this. When you do I suggest sharing the contents of the .proto files, or at least the message type(s) that you are having problems with, so that they can see the problem more specifically.

@u007
Copy link
Author

u007 commented Jun 11, 2020

iam using grpc-tools 1.9.0, ok i will try to raise ticket there.

protocolbuffers/protobuf-javascript#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants