question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cookie is invalid because its size is too big

See original GitHub issue

Description

I have a table with 15 columns of data and the cookie extension enabled. The pagination and search bar cookies work as expected, but the show/hide column cookie does not save. On Chrome this silently fails with no messages in the console. However, Firefox is more verbose and explains the problem: Cookie “saveId.bs.table.columns” is invalid because its size is too big. Max size is 4096 B.

Not sure if this limitation can be addressed by the dev team, or if there is something I can do on my end to work around this. This limit does not appear to be changeable on the browser side. I could change storage, but does that open up security risks? Please advise.

Example (optional)

The problem can be observed when using the following example on Firefox: https://live.bootstrap-table.com/code/knight-of-ni/4375

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
UtechtDustincommented, Aug 16, 2020

Thanks for the bug report, i submitted a PR which fix this issue.

First i thought you have weired long header columns, because it must be a lot of text for over 4096 Bytes. Then i looked into the code and so are saving the whole columns object including internal data which makes no sense. With this fix we only save the field attribute 😃

0reactions
knight-of-nicommented, Sep 5, 2020

@djhvscf this was addressed in #5262

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the “Cookie Too Big” Error | WhatsaByte
1. On your browser, go to Settings> Show Advanced Settings > Privacy>Content Settings. · 2. You will see a new pop up screen....
Read more >
What is the maximum size of a web browser's cookie's key?
A cookie is deleted by updating it and setting it to expire. If the name is too big, say 4090 bytes, I found...
Read more >
Request Header or Cookie Too Large Error? Here's How to Fix
Request Header or Cookie Too Large is an error that typically appears when you open a website on your browser for browsing or...
Read more >
How to Fix the “Request Header Or Cookie Too Large” Issue
For Google Chrome​​ You can fix the “ 400 Bad Request. Request Header Or Cookie Too Large” by checking and deleting the cookies...
Read more >
22242 (Setting cookie that is too large fails silently)
Chrome probably displays the size of the cookie incorrectly, because if I try to set any cookie parameter, the cookie is not set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found