博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
spring cloud provider报“Error parsing HTTP request header”,feign端报“Read timed out“
阅读量:4552 次
发布时间:2019-06-08

本文共 1196 字,大约阅读时间需要 3 分钟。

这两天在调试spring cloud feign+hystrix报了如下错误:

spring cloud provider报“Error parsing HTTP request header”,feign端报“Read timed out“

provider报错信息:

2018-06-20 18:23:51,595 [http-nio-8086-exec-5] DEBUG org.apache.coyote.http11.Http11Processor:182 - Error parsing HTTP request headerjava.io.EOFException: null    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1250)    at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1190)    at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:717)    at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:366)    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:687)

 

feign报错信息:

Exception in thread "pool-10-thread-14" feign.RetryableException: Read timed out executing

 

 

针对provider报错信息需要修改的配置如下:

server:  port: 8087  tomcat:      max-http-header-size: 3145728    --这里

 

 

针对feign端报错信息需要调整的配置如下:

feign:  client:    default:      #这里时间一定要调长,否则feign客户端会报ReadTimeOut  服务端报Error parsing HTTP request header      connectTimeout: 60000      readTimeout: 60000      loggerLevel: basic

 

转载于:https://www.cnblogs.com/dbaxyx/p/9205378.html

你可能感兴趣的文章
redis安装(linux)
查看>>
mysql自定义函数多表更新:update_order_relation()
查看>>
UUID与时间戳
查看>>
SimpleDateFormat 线程安全的解决方案--DateTimeFormatter
查看>>
mysql不常用查询
查看>>
win下PowerShell的簡單使用
查看>>
windows下安装redis
查看>>
redis簡單命令
查看>>
git问题记录
查看>>
如何将jar包打包到本地maven仓库
查看>>
idea修改maven项目名
查看>>
idea远程调试tomcat部署项目(windows环境)
查看>>
@Slf4j注解
查看>>
maven仓库镜像、私服与jdk版本配置
查看>>
关于JDBC、JdbcTemplate使用遇到的坑
查看>>
java代码实现数据源切换(连接池简单粗暴)
查看>>
关于tomcat启动错误:At least one JAR was scanned for TLDs yet contained no TLDs
查看>>
mysql自定义函数初始化数据:init_data()
查看>>
关于tomcat报错记录
查看>>
linux(centos 7)安装及使用yum
查看>>