huanghezhen edited a comment on issue #2557:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2557#issuecomment-915868584


   我不知道该怎么形容这个问题  我大概描述一下  
   现在有网关A 和 服务B     网关A 我设置了  `servicecomb:
     request:
       timeout: 2000`  然后我使用浏览器地址栏里面调用接口C (是走网关的,然后我睡眠了60秒) 的时候   报如下错
   `
   11111111111111111111111111111
   2021-09-09 15:30:45.948  INFO 44260 --- [ntloop-thread-1] 
o.a.s.t.r.c.http.RestClientInvocation    : Request timeout, Details: The 
timeout period of 2000ms has been exceeded while executing GET 
/healthExamination for server 192.168.2.79:8017.
   2021-09-09 15:30:45.949 ERROR 44260 --- [ntloop-thread-1] 
i.v.c.http.impl.HttpClientRequestImpl    : 
io.vertx.core.http.impl.NoStackTraceTimeoutException: The timeout period of 
2000ms has been exceeded while executing GET /healthExamination for server 
192.168.2.79:8017
   11111111111111111111111111111
   2021-09-09 15:30:47.962  INFO 44260 --- [ntloop-thread-2] 
o.a.s.t.r.c.http.RestClientInvocation    : Request timeout, Details: The 
timeout period of 2000ms has been exceeded while executing GET 
/healthExamination for server 192.168.2.79:8017.
   2021-09-09 15:30:47.963 ERROR 44260 --- [ntloop-thread-2] 
i.v.c.http.impl.HttpClientRequestImpl    : 
io.vertx.core.http.impl.NoStackTraceTimeoutException: The timeout period of 
2000ms has been exceeded while executing GET /healthExamination for server 
192.168.2.79:8017
   11111111111111111111111111111
   2021-09-09 15:30:49.972  INFO 44260 --- [ntloop-thread-5] 
o.a.s.t.r.c.http.RestClientInvocation    : Request timeout, Details: The 
timeout period of 2000ms has been exceeded while executing GET 
/healthExamination for server 192.168.2.79:8017.
   2021-09-09 15:30:49.973 ERROR 44260 --- [ntloop-thread-5] 
i.v.c.http.impl.HttpClientRequestImpl    : 
io.vertx.core.http.impl.NoStackTraceTimeoutException: The timeout period of 
2000ms has been exceeded while executing GET /healthExamination for server 
192.168.2.79:8017
   `
   
   然后过了 6.04秒之后 报错
   `{
   "message": "Request Timeout."
   }`
   也就是用了浏览器调用时网关会被调用三次之后 抛出超时异常  但是看浏览器控制台的请求记录就是一个
   
   
   
   然后我使用postman测试时 就只调用了一次 然后返回超时  花费的时间时2s 也就是我设置的超时时间
   
   
   总结:  postman 是希望的结果,就是浏览器出现的情况没理解是什么问题
   
   
   补充: 使用浏览器的 ajax请求的时候 也是一样的问题


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