-
Notifications
You must be signed in to change notification settings - Fork 667
No support custom grpc error status code in @grpc/grpc-js package different with grpc(c core) #2151
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
Comments
@murgatroid99 Can I provide anything further to resolve this issue as soon as possible? |
There's nothing else you need to provide. I have just been focused on other things. This change also requires changes in multiple places that assume that the code is in the |
@murgatroid99 Hi! When you can fix this issue? |
Sorry to bother you again. I just want to know if this problem can be fixed. I understand that the open-source community is not obligated to resolve these issues, and I hope it won't put too much pressure on you. I just wanted to let you know that we are still looking forward to a fix for this problem. |
It looks like the current behavior of the library is actually what you want, so you can switch now. It looks like the change happened in the 1.10.7 release unintentionally as a part of #2723. |
Problem description
No support custom grpc error status code in @grpc/grpc-js package different with grpc(c core)
When My Golang server respone a custom grpc error status code, @grpc/grpc-js only get code 2 Unknow.
Reproduction steps
https://github.com/BobDu/grpc-errors-demo
see this code repository. The focus is on the commits after my fork.
I define a Custom Error Status enum in proto.
hello.proto
In golang service. throw a grpc err with custom status.
go/server.go
when i call this service use grpcurl. get it.
when i use grpc (c core) client. The error code is 88 as expected.
But, when i use @grpc/grpc-js client ,the result is 2 Unkonw.
Environment
in my demo code repository config file.
Additional context
N/A
@murgatroid99
thanks.
The text was updated successfully, but these errors were encountered: