javamicronauthttp-status-code-413

Why am I getting Request Entity Too Large WITHOUT file?


I am making a GET request and I am appending 40 strings to a query parameter. And each string is 100 chars long.

Why would I be Request Entity Too Large error even though there is no file involved? Also, if I understood the limitations of a query params correctly, then there is no limit to it unless browser has placed a limitation. And I am making a request without a browser anyway (via Tests).

I have tried max request size to 200 MB and max file upload size to 200 MB. I am sure file has nothing to do with it, but just to test it I put that limit for a file upload.

When I send in 39 strings where each string is still 100 chars long, the request pass without problems. What else I can do?


Solution

  • micronaut.server.netty.max-initial-line-length is the answer. If somebody stumbles upon it...