dianping / cat

CAT 作为服务端项目基础组件,提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端,已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统等)深度集成,为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。
Apache License 2.0
18.71k stars 5.43k forks source link

使用tomcat9启动cat会报错 #2321

Open RekiOwl opened 1 year ago

RekiOwl commented 1 year ago

06-Nov-2023 06:07:45.387 信息 [http-nio-8180-exec-38] org.apache.coyote.http11.Http11Processor.service 解析 HTTP 请求 header 错误 注意:HTTP请求解析错误的进一步发生将记录在DEBUG级别。 java.lang.IllegalArgumentException: The HTTP header line [host 127.0.0.1] does not conform to RFC 7230. The request has been rejected. at org.apache.coyote.http11.Http11InputBuffer.skipLine(Http11InputBuffer.java:1074) at org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:905) at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:591) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:286) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1790) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:833)