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.

QuoteExceededError from localStorage

See original GitHub issue

I am receiving errors from the oidc-client-ts library when storing data in localStorage. I also notice many values in localStorage over time, all with different keys.

My configuration user manager settings are:

{
      authority: '',
      client_id: '',
      redirect_uri: ``,
      scope: 'openid, profile ...',
      response_type: 'code',
      post_logout_redirect_uri: '',
      filterProtocolClaims: false,
      automaticSilentRenew: true,
      silent_redirect_uri: ''
}

Is there some configuration that I am missing that is not cleaning up the old values?

Below is a screenshot of the error.

image (2)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kherockcommented, Apr 6, 2022

@pamapa currently this library never runs .clearStaleState() in any automatic fashion. I don’t think we have a leak to patch here, I think it’s just a problem of incomplete authorization requests piling up while developing a new application. How do you feel about automatically running it at the beginning of OidcClient#createSigninRequest()?

0reactions
pamapacommented, Apr 7, 2022

@luke-atp until we have fixed in the library, that can be a possible workaround. Please also notice clearStaleState uses StaleStateAgeInSeconds settings (Default is 60*15) to know which ones to clear. If you need to tweak that setting please let us know…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I solved the LocalStorage “QuotaExceededError: DOM ...
We use LocalStorage to store images (Base64 encoded) and other reusable resources. In doing so we encountered the “QuotaExceededError: DOM ...
Read more >
Handling localStorage errors (such as quota exceeded errors)
Well, there's only one way browsers tell you if the storage is full: they throw an error (commonly referred as QuotaExceededError ) when...
Read more >
QuotaExceededError (DOM Exception 22): The quota has ...
EDIT 2021: You can now use localStorage in Incognito mode. This error can also occur when you run out of the allowed storage...
Read more >
Error: QuotaExceededError: The quota has been exceeded ...
Sometimes localStorage does not work or is not available, e.g. in private mode https://stackoverflow.com/questions/42467908/quotaexceedederror- ...
Read more >
Blowing up LocalStorage (or what happens when you exceed ...
Throws an exception, but with a completely different name/code. The name is NS_ERROR_DOM_QUOTA_REACHED and the code is 1014. firefox. Safari 8.0 ...
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