These two days in debugging Spring Cloud Feign+hystrix reported the following error:
Spring Cloud provider "Error parsing HTTP request Header", feign end "Read timed out"
Provider error message:
2018- .- - -: at:Wuyi,595[http-nio-8086-exec-5] DEBUG Org.apache.coyote.http11.Http11Processor:182-Error parsing HTTP request Headerjava.io.EOFException:NULLAt 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 error message:
inch " pool-10-thread-14 "
The configuration for provider error message needs to be modified as follows:
Server: 8087 Tomcat: Max3145728 --here
The configuration for the error message on the feign side needs to be adjusted as follows:
Feign: client: default: #这里时间一定要调长, otherwise feign clients will report readtimeout Service report error parsing HTTP request Header 60000 60000 loggerlevel:basic
Spring Cloud provider "Error parsing HTTP request Header", feign end "Read timed out"