You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/02/26 12:40:46 UTC

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1596: 微服务RPC调用时在HttpClientFilter 中如何处理请求中产生的异常?

liubao68 commented on issue #1596: 微服务RPC调用时在HttpClientFilter 中如何处理请求中产生的异常?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1596#issuecomment-591406000
 
 
   比较通用的做法可以实现一个[Handler](https://docs.servicecomb.io/java-chassis/zh_CN/references-handlers/intruduction/),比如 error-handler, 然后配置在其他Handler的前面。 Handler里面可以从Invocation取到很多信息,如果没有的信息,比如HTTP协议里面的某些header,可以在HttpClientFilter里面setContext。 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services