-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Panic when a handler returns an error that wraps an error that has gRPC status OK #6373
Labels
Comments
We were able to track down the error with If the wrapped error is not a gRPC error, the status.FromError returns (_, false) and (credit to @ella-chao) |
Fixed in #6374 present in Release 1.56.2 and Release 1.55.1. |
pwschuurman
added a commit
to pwschuurman/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 14, 2023
pwschuurman
added a commit
to pwschuurman/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 14, 2023
k8s-ci-robot
added a commit
to kubernetes-sigs/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 14, 2023
Upgrade google.golang.org/grpc from v1.55.0 -> v1.55.1 to address grpc/grpc-go#6373
pwschuurman
added a commit
to pwschuurman/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 15, 2023
pwschuurman
added a commit
to pwschuurman/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 15, 2023
k8s-ci-robot
added a commit
to kubernetes-sigs/gcp-compute-persistent-disk-csi-driver
that referenced
this issue
Sep 20, 2023
Upgrade google.golang.org/grpc from v1.55.0 -> v1.55.1 to address grpc/grpc-go#6373
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of gRPC are you using?
1.55+. 1.54.1 is not affected because this most likely was introduced by https://github.com/grpc/grpc-go/pull/6031/files.
What version of Go are you using (
go version
)?1.20.4
What operating system (Linux, Windows, …) and version?
Linux
What did you do?
We have services that return an error that wraps an error that have a grpc status code OK. When returns, gRPC panics:
What did you expect to see?
Not sure what the right behaviour is in that case. We could simply return OK, like we do for errors that directly have status OK. But a better behavior may be to return status code unknown.
What did you see instead?
Panic.
The text was updated successfully, but these errors were encountered: