I have recently upgraded to jenkins 2.89.4(jdk8). I am continuously getting below error on a redirected page whenever I go into the configuration tab of any jenkins job.
Bad Message 431 reason: Request Header Fields Too Large
There is not enough help available on jenkins pages. The workaround I have is to go and remove the cookies but I see the same page again after 2-3 redirection.
Clear Your Cookies Too many cookies in the request can cause a web page to show the HTTP error 431 status instead of its content. Websites often use cookies to store preferences, give relevant content, and keep users signed in. However, clearing the browser cookies helps fix this issue.
The HTTP 431 Request Header Fields Too Large response status code indicates that the server refuses to process the request because the request's HTTP headers are too long. The request may be resubmitted after reducing the size of the request headers.
Cookies too large or corrupted – another possible reason why you are seeing the error on your screen is the cookies for the particular website is too large or the cookies gets corrupted. Clearing the cache data and cookies may work for you.
As per official issue thread in the jenkins site,Cookies
are the main reason for this. More times you (re)start the server, it will create more session ID's. This is the main culprit for this reason. So please delete your cookies and try again. It will work again. Hope this helps.
Opening Jenkins page on incognito mode temporarily solves the issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With