Fix HTTP 431 by clearing cookies for the affected site only
If error 431 appears First look for the word Cookie just below the error title. If it says “The Cookie header was too large,” clear the problematic site’s cookies in your browser settings and try opening the same page again. If you only see the number 431, do not rush to delete it, but first check the address where the error occurred and the path it came from.
431 Read problematic header from body
In addition to the address, when you open a page, the browser sends information that the server uses to process the request. The item containing that information is the request header. When the server cannot accept the size of one header or all headers, the response it sends is 431 Request Header Fields Too Large. It may also appear when you click on the document link as usual without uploading the file.
There is a site that displays only the English error name in large letters at the top of the screen and writes the cause in one line below. Distinguish between whether the line points to the Cookie, the Referer, or just a general comment about the size being too large. Cookie is cookie information sent to the site, and Referer is information about the address used when entering that page. The two items have different ways of reducing them.
For example, the list of archives opens, but the moment you click on a specific notice, 431 may appear. What you need to write down at this time is the domain where the error occurred, the exact text displayed on the screen, and the fact that you clicked the link in the list just before. If you already see the text, you don't need to open developer tools to retrieve the cookie content.
Check site scope and login before clearing
If you read that cookies are the cause, check the site name in the address bar. If an error occurs after moving from the company website to an external reservation service, the address may be different from the original website. If you just clean up where you started, the same cookies may be sent again to the service that actually caused the error.
Can I log in again from that site? Take a look first. Cookies are also used to keep you logged in. In browsers that also clear site data, content or screen settings temporarily stored only on your device may disappear. If there are pre-submission applications or documents being edited in other tabs, save the necessary text first and proceed after completing the work.
If you see an error in the last button of your order or reservation, you should reopen the order history or reservation inquiry page to check. If you press the same button right away, it is difficult to tell whether a previous order has been placed. If you have an approval text or receipt number, save it and use a read-only page when checking whether the site opens.
Clean only the site's data in your browser
Open the settings of the browser in question and enter ‘site data’ or ‘cookies’ in the settings search. Open a list where you can browse saved sites individually. Even if the menu name is different in each browser, you can gauge the scope by seeing whether the domain is displayed before deletion. If you only see ‘All Periods’ or ‘All Sites’, do not immediately delete them from that screen but return to the individual site list.
In the example screen, I searched for docs.example and found only one place. In effect, you enter the domain read from the error address. If there are multiple search results with similar names, read the spelling and endings, and use the delete action attached to the selected item. When a confirmation window appears, confirm the target site and the type of data you want to remove once more.
If you use separate work and personal profiles, you will need to open the settings on the side that saw the error. Even on mobile phones, the saved login status may be different between pages opened within Messenger and browsers launched separately. Don't assume that the cookies on the screen where the error first occurred have been cleaned up just because the same address opens successfully in another app.
Open the same page again and separate results
Clear the target site from the list and then reopen the page you were trying to read. If it is a public page, check first whether the main text is visible, and if it is a members-only page, check whether it progresses to the login window properly. The login window changes as expected after clearing cookies. After logging in, you should check whether the data room or document that was initially blocked can be opened.
| Result of reopening | What to check | next action |
|---|---|---|
| Document opened | Check if this is the page you intended to see for the first time | Continue existing work |
| Show login window | Check if the domain is the one you normally use | Check the original page after logging in |
| Same 431 repetition | Record the body of the error and when it occurred | Forwarded to site administrator |
If the first connection is successful, but 431 appears again immediately after logging in, the order is an important clue. Make a note of whether this happens every time you log in to a specific account or click on a specific menu. Rather than deleting the same site data multiple times, the explanation that “the data room is opened before logging in and 431 is displayed on the first view after logging in” helps the operator find the problem section.
When cookies are not mentioned or errors are repeated
If the error body points to the Referer, check whether the address of the page you opened just before was long. If it fails only when you click a link on the results screen with multiple search conditions, open the service's home screen directly in a new tab and follow the main menu to find the same document. This is a way to compare whether the results change when you change the previous path and open it. If you arbitrarily truncate the parameters of the invitation link or authentication link, you may not be able to reach the original destination.
If there is only the title 431 and the item is unknown, it is difficult to say for sure that clearing cookies will solve the problem. The server can send the same code even if one header is large or the combined size of multiple headers exceeds the limit. Narrow down the situation by checking whether the site's home screen and the problem page are opened separately, and whether it only occurs when going through a specific link.
Please inform the operator of the occurrence time, browser type, access path, and header name of the error body. For example, you can write, “When you open the notice in the data room with a mobile browser, 431 appears, and the text says Cookies are large. After clearing the site data, it occurs again immediately after logging in.” If there is a personal identifier attached to the address, cover it up and do not attach the original login cookie or authentication information.
official data · MDN · 431 Request Header Fields Too Large
official help
Check official documentation ·
Inspection information
- public status
- public
- Document inspection date
- Scheduled for next review
- direct reproduction
- no record
This article was written based on official documents. We don't represent things as if we experienced them unless we reproduced them ourselves.