INFO 7673 --- [nio-8080-exec-1] [] o.a.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: Invalid character found in method name [0x160x030x010x000xee0x010x000x000xea0x030x03H0xe70xd30x9b0xea0x900xd60x120x900xd50xe40x0fS0xd90xef0x900x8c0x8b0xcb`0x020x9fi0xd70xa00xc080xa5{0xae0xc2+ ]. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
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:840)
/etc/nginx/conf.d/default.conf
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
어이없...
헤더 문제인 것 같아서 nginx 설정파일에 헤더 관련한 내용을 작성을 안해서 그런가 싶어서 추가를 해봤는데
안되다가.. 잠깐 자리 비우고 돌아와서 해보니까 됨;;
그래서 이게 진짜 문제가 맞나? 싶어서 헤더 관련 설정 부분 주석처리하고 다시 시도했는데 됨..
그럼 헤더 설정이 있어도 그만 없어도 그만이고...처음엔 왜 저런 에러가 발생했는지 이해가 안감..
요청은 계속 똑같은 데이터로 하는뎅...