-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
TxByEvents grpc route panics when pagination parameters are not provided #8028
Comments
As discussed during a Regen internal call, we thought it would be a good idea to add a panic handler on all queries: #8038 |
This is a sign that the recent (gRPC, etc...) client-facing code wasn't thoroughly tested enough when merging to master. |
This is also a sign that |
Yes, but it seems @amaurymartiny is mainly concerned about non-explicit |
Summary of Bug
Node panics and shuts down when the
cosmos.tx.v1beta1.Msg/TxsByEvents
method is queried over grpc without pagination parameters.Similarly, querying grpc-gateway against
/cosmos/tx/v1beta1/txs
endpoint without pagination parameters handles the panic, but still returns a nil-pointer error to clients.Version
master (reproduced with 1b3ce2c)
Steps to Reproduce
grpc gateway
Error:
Running the same query with pagination flags gives a correct response:
grpcurl
I also was able to reproduce with grpcurl, verifying that this is not a bug in grpc gateway.
causes the node to panic and shut down, with the following stack trace:
Meanwhile, the following command returns successfully:
Found while investingating this behiavor for #7281
cc @aleem1314 @anilcse
For Admin Use
The text was updated successfully, but these errors were encountered: