HTTP标头行不符合RFC 7230,已被忽略

时间:2019-12-16 16:15:21

标签: java spring-boot spring-cloud-sleuth

我正在使用侦探来跟踪我的请求,但是当我从另一个微服务调用时,我收到了400个错误的请求。

配置 spring.sleuth.propagation-keys =X─B3─TraceId,X─B3─ParentSpanId,X─B3─SpanId,X─B3─已取样

2019-12-16 16:27:53.497 INFO [xxx-service,,,] 939 --- [nio-8081-exec-3] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: The HTTP header line [xB3SpanId: d57f94dc9ccdfd58] does not conform to RFC 7230 and has been ignored.
at org.apache.coyote.http11.Http11InputBuffer.skipLine(Http11InputBuffer.java:953)
at org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:816)
at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:563)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:311)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案