Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins keeps throwing Bad Message 431 reason: Request Header Fields Too Large

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.

like image 684
UserASR Avatar asked Mar 06 '18 10:03

UserASR


People also ask

How do I fix bad message 431 Reason request header fields too large?

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.

What does it mean when it says request header fields too large?

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.

What does cookie too large mean?

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.


2 Answers

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.

like image 118
SV Madhava Reddy Avatar answered Oct 05 '22 20:10

SV Madhava Reddy


Opening Jenkins page on incognito mode temporarily solves the issue

like image 44
piyush89 Avatar answered Oct 05 '22 19:10

piyush89