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
We have one gRPC Go server which is wrapped by Grpc Gateway. So, out web portal is communicated with Gateway in Http protocol and internally gRPC gateway and gRPC server are communicating by gRPC protocol.
Most of the call is working fine. Only one call response is having an issue. Type specified in proto file is integer but JSON response having type as String.
Some useful details -
We are having 2 protos file - One file is imported in another proto file.
Type issue is coming in imported file message.
The text was updated successfully, but these errors were encountered:
I'm reading between the lines here, but I assume you're using a int64 or uint64 type for this field? See #438 for more discussion, but the short answer is, JSON doesn't support the full range of 64bit integers, so we're forced to use strings to be accurate for large numbers. I will preemptively close this, but please let me know if I've misunderstood.
Yeah, we are using int64. But the value of the same is small. In past, before using go, code was written in Node JS and JSON was supporting that value.
We have one gRPC Go server which is wrapped by Grpc Gateway. So, out web portal is communicated with Gateway in Http protocol and internally gRPC gateway and gRPC server are communicating by gRPC protocol.
Most of the call is working fine. Only one call response is having an issue. Type specified in proto file is integer but JSON response having type as String.
Some useful details -
We are having 2 protos file - One file is imported in another proto file.
Type issue is coming in imported file message.
The text was updated successfully, but these errors were encountered: