-
Request header is too large 해결방법Spring 2022. 5. 30. 18:47반응형
INFO: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Request header is too large at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:
512
) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:
501
) at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:
171
) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:
996
) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:
623
) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
318
) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110
) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
603
) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:
61
) at java.lang.Thread.run(Thread.java:
722java.lang.IllegalArgumentException: Request header is too large 이라는 에러메시지가 발생하는 경우는
HTTP request header가 너무 커서 발생하는 문제이다.
해결방법
spring config 파일에 http max header size를 설정해주면 된다.
server: max-http-header-size: 40KB
반응형'Spring' 카테고리의 다른 글