HTTP Status code 431 header too long

I am experiencing the exact same issue described here:

It happens on a local environment (an Angular application using ‘auth0-spa-js’ running on localhost).

Basically I have been logging in and out of the application multiple times using different user accounts (just as part of dev process) and eventually I got that error.

It appears it happened after 19 times because the same string appears 19 times inside the Cookie header:

Hi andkov, and welcome to the community! :partying_face:

This can happen when you have too many user cookies saved. You should be able to solve it by clearing your browser cache or using an incognito window.

Please let me know if that works.

1 Like

Thanks @thomas.osborn, that is how I solved it when it happened. My question is more if there is a way to prevent it from happening? Especially to a real user?

Or is it too unlikely to happen, to be a concern?

I think it is very unlikely to happen. Those cookies should expire after 24 hours, so unless 18+ users login from the same browser, all within a 24 hour period, it shouldn’t happen.

It also happens with the same user logging out and back in 18+ times, but I get your point.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.