We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GRPC staking/Delegator/Delecagtion query return wrong error code when they are not found status.
=== TestGetDelegatorDelegations rpc error: code = Unknown desc = rpc error: code = NotFound desc = unable to find delegations for address cosmos19m7kcekvusqkc59sen0423gyv3ry0sl9dajs90: key not found status.Convert(err).Code() : Unknown
it have to return Not found not Unknown
Not found
Unknown
it is implemented "google.golang.org/grpc/status"
// The gRPC framework will generate this error code in the above two // mentioned cases. Unknown Code = 2 ... NotFound Code = 5
The text was updated successfully, but these errors were encountered:
I gonna implement with Unknown to handle this case temporarilly.
Sorry, something went wrong.
If I look at the error, it seems like an Unknown error is wrapping a NotFound error?
aleem1314
Successfully merging a pull request may close this issue.
Summary of Bug
GRPC staking/Delegator/Delecagtion query return wrong error code when they are not found status.
it have to return
Not found
notUnknown
it is implemented "google.golang.org/grpc/status"
Version
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: