码迷,mamicode.com
首页 > 其他好文 > 详细

eign超时设置 feign.RetryableException: Read timed out executing POST xx

时间:2020-12-21 11:12:19      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:ons   header   nbsp   tin   protocol   prot   url   seh   buffered   

Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:171)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at feign.Client$Default.convertResponse(Client.java:82)
    at feign.Client$Default.execute(Client.java:78)

yml添加配置

feign:
  client:
    config:
      default:
        connect-timeout: 10000
        read-timeout: 10000

 

eign超时设置 feign.RetryableException: Read timed out executing POST xx

标签:ons   header   nbsp   tin   protocol   prot   url   seh   buffered   

原文地址:https://www.cnblogs.com/zhangzhiping35/p/14141083.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!