yl-yue commented on issue #9342:
URL: https://github.com/apache/dubbo/issues/9342#issuecomment-986423146


   @EarthChen 感谢解答,谢谢!
   ### 问题一:tri协议,中文异常乱码
   答案:会在下个版本中得到解决
   
   ### 问题二:tri协议,在异常中加入无意义内容(Exception in invoker chain :),导致前端不方便提示异常
   - 答案?:需要将`13 INTERNAL`异常,转换为`2 UNKNOWN`异常,间接解决?
   - 答案?:会在下个版本中得到解决,移除`Exception in invoker chain :`内容(或可配置开关)
   
   那么问题二的答案是?
   
   > 总得来说,如果需要业务异常进行处理,建议增加 attach 使用 filter 在两端进行异常转换,不要使用 grpc-message
   - 主要的问题在于我们的前端web与app也是采用的grpc通信,之所以使用 grpc-message,也是需要向用户提示,如:密码错误,之类的业务提示。
   - 同时我们后端还有异构语言,用 filter 添加 attach 的方式,显得过于复杂了。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to