servicecomb rpc 调用超时问题

servicecomb rpc 调用超时问题

错误日志如下:
org.apache.servicecomb.swagger.invocation.exception.InvocationException: InvocationException: code=490;msg=CommonExceptionData [message=Unexpected consumer error, please check logs for details]
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.exception.ExceptionFactory.doCreate(ExceptionFactory.java:81)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.exception.ExceptionFactory.convertException(ExceptionFactory.java:124)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.exception.ExceptionFactory.convertConsumerException(ExceptionFactory.java:85)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.Response.createConsumerFail(Response.java:178)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.Response.createFail(Response.java:171)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.swagger.invocation.AsyncResponse.fail(AsyncResponse.java:42)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.transport.rest.client.http.RestClientInvocation.fail(RestClientInvocation.java:294)
60cac2cafff29e45e1f86e0b at org.apache.servicecomb.transport.rest.client.http.RestClientInvocation.lambda$new 0 ( R e s t C l i e n t I n v o c a t i o n . j a v a : 86 ) 60 c a c 2 c a f f f 29 e 45 e 1 f 86 e 0 b a t o r g . a p a c h e . s e r v i c e c o m b . t r a n s p o r t . r e s t . c l i e n t . h t t p . R e s t C l i e n t I n v o c a t i o n . l a m b d a 0(RestClientInvocation.java:86) 60cac2cafff29e45e1f86e0b at org.apache.servicecomb.transport.rest.client.http.RestClientInvocation.lambda 0(RestClientInvocation.java:86)60cac2cafff29e45e1f86e0batorg.apache.servicecomb.transport.rest.client.http.RestClientInvocation.lambdainvoke$1(RestClientInvocation.java:125)
60cac2cafff29e45e1f86e0b at io.vertx.core.http.impl.HttpClientRequestBase.handleException(HttpClientRequestBase.java:133)
60cac2cafff29e45e1f86e0b at io.vertx.core.http.impl.HttpClientRequestImpl.handleException(HttpClientRequestImpl.java:370)

解决方案:
1.服务消费端 设置端请求超时时间
servicecomb.rest.client.connection.idleTimeoutInSeconds
2.服务提供方 设置请求超时时间
servicecomb.rest.server.connection.idleTimeoutInSeconds

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值