-
Notifications
You must be signed in to change notification settings - Fork 26.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
triple 协议 stub 调用无法捕获自定义异常甚至 RpcException #12632
Comments
@EarthChen @icodening PTAL |
我也遇到这个问题,使用3.2.3也不行,会报超时异常。
|
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version:dubbo 3.2.2
现象:使用 triple 协议 + IDL(protobuf stub),provider 端抛出
RpcException
后,consumer 端无法捕获具体的code
,统一为Unknown,同理自定义异常也被处理为 Unknow RpcException。Provider 端异常抛出代码:
Consumer 端日志打印:debug get rpc ex: org.apache.dubbo.rpc.StatusRpcException: UNKNOWN : test exception
因为比较疑惑,Dubbo 3.2.0 版本开始 Triple 协议支持回传自定义异常,所以扒了下原因:
看上去 TripleServerStream 在存在 stub 被调用时,会选用默认关闭 Exception Wrapper 的序列化选项的 StubAbstractServerCall。
所以,使用 IDL 调用是无法处理自定义异常吗?以及标准的 RpcException 的处理似乎也有问题。后续会解决这个问题吗?
The text was updated successfully, but these errors were encountered: