humingcheng commented on code in PR #5014:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/5014#discussion_r2516522642


##########
clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRawClient.java:
##########
@@ -96,6 +104,16 @@ private HttpResponse doHttpRequest(String url, boolean 
absoluteUrl, Map<String,
     }
   }
 
+  private void recordAndSendUnAuthorizedEvent(HttpResponse response, String 
address) {
+    if (this.eventBus != null && response.getStatusCode() == 
HttpStatus.SC_UNAUTHORIZED) {

Review Comment:
   401的错误有多种,只有token解析失败才能视为地址管理的异常(即一个地址的token发到了另一个地址)。
   



-- 
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]

Reply via email to