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
This implies some part of your code is using the new Go protobuf stack, and your generated Gogo protobuf messages are not working with it. I would search your codebase for uses of google.golang.org/protobuf and either remove them and keep using gogo protobuf, or migrate from gogo protobuf to the official generator. It's a somewhat complicated issue, and probably best covered in the support channel (#grpc-gateway on Gophers slack https://invite.slack.golangbridge.org/). This is not an issue with the gateway but a mismatch between the configured marshaler and the code generator used.
🐛 Bug Report
Gateway integration is failing with following message while
runtime.ForwardResponseMessage
.Coin
is a proto message in the reference code.Reference integration code is here: https://github.com/cosmos/cosmos-sdk/blob/atheesh/5921-grpc-gateway-register/x/bank/module.go#L68
and it's failing here:
https://github.com/cosmos/cosmos-sdk/blob/atheesh/5921-grpc-gateway-register/x/bank/types/query.pb.gw.go#L315
resp
contains the expected data but it is failing insideforward_Query_TotalSupply_0
in the exampleTo Reproduce
Expected behavior
Should return the query response as
resp
here: https://github.com/cosmos/cosmos-sdk/blob/atheesh/5921-grpc-gateway-register/x/bank/types/query.pb.gw.go#L31Actual Behavior
Looks like something to do with the
Marshaler
, any help would be really appreciated.Your Environment
Go: 1.14
Ubuntu: 18.04
Gateway: v1.14.6
The text was updated successfully, but these errors were encountered: