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

Error when reverse proxy to gRPC server (which is impl with Node.js) #246

Closed
idy opened this issue Oct 29, 2016 · 1 comment
Closed

Error when reverse proxy to gRPC server (which is impl with Node.js) #246

idy opened this issue Oct 29, 2016 · 1 comment

Comments

@idy
Copy link

idy commented Oct 29, 2016

I have a proto3 definition, and use grpc-gateway bridge JSON/HTTP1.1 request to backend PB/gRPC server.
There is a weird error: no coders for int, When grpc-gateway reverse request to node.js server.

I add a log before reverse grpc request and log the grpc response:
Grpc Request Data:

{Time:1477733767 Series:93fc3a3c-e8d2-417b-99da-1f8038e8bb05 DataPoints:[1.1 2.2]}

Grpc Response Metadata:

{HeaderMD:map[grpc-accept-encoding:[identity,deflate,gzip]] TrailerMD:map[]}

Grpc Response Error:

rpc error: code = 13 desc = Illegal wire type for field Message.Field .CollectDataPoint.dataPoints: 2 (1 expected)proto: no coders for int
@idy
Copy link
Author

idy commented Oct 29, 2016

This issue is related with grpc/grpc#5174 and protobufjs/protobuf.js#476

I have a repeated field in proto definition, dcodeIO do not treat proto3's repeated field as packed.

@idy idy closed this as completed Oct 29, 2016
@tamalsaha tamalsaha mentioned this issue Mar 30, 2017
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant