Buddies2024 / spring

0 stars 1 forks source link

개발 서버 info 로그에서 발견된 오류 해결 #435

Open yeeuniii opened 3 days ago

yeeuniii commented 3 days ago

작업 요약

개발 서버 info 로그에서 발견된 오류 해결

오류 메시지 1

2024-11-22 08:37:04.359 [http-nio-8080-exec-3] [INFO] o.a.c.h.Http11Processor: Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/index.php?s=/index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=Hello ]. The valid characters are defined in RFC 7230 and RFC 3986
        at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:482)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:257)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
        at java.base/java.lang.Thread.run(Thread.java:1583)

오류 메시지 2

2024-11-18 23:09:44.832 [http-nio-8080-exec-6] [INFO] o.a.c.h.Http11Processor: The host [*.buddies-spring.site] is not valid
 Note: further occurrences of request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: null
        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:74)
        at org.apache.tomcat.util.http.parser.Host.parse(Host.java:43)
        at org.apache.coyote.AbstractProcessor.parseHost(AbstractProcessor.java:298)
        at org.apache.coyote.http11.Http11Processor.prepareRequest(Http11Processor.java:777)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:361)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
        at java.base/java.lang.Thread.run(Thread.java:1583)

작업 세부 사항

yeeuniii commented 3 days ago

오류 메시지 1 참고 문서

SpringBoot - Error parsing HTTP request header Tomcat: java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens