bancorprotocol / carbon-app

https://app.carbondefi.xyz
MIT License
23 stars 14 forks source link

[SENTRY] QuotaExceededError #1290

Open tiagofilipenunes opened 1 month ago

tiagofilipenunes commented 1 month ago

Error from Sentry:The quota has been exceeded when setting localStorage cachedDump in src/hooks/useCarbonInit.ts:

const persistSdkCacheDump = async () => {
  console.log('SDK Cache dumped into local storage');
  const cachedDump = await carbonSDK.getCacheDump();
  lsService.setItem('sdkCompressedCacheData', cachedDump, true);
};
zavelevsky commented 4 days ago

I didn't see it there, it actually worked fine on Safari incognito. What failed to access local storage was an iframe related to wallet connect

tiagofilipenunes commented 3 days ago

This is the sentry error: https://bprotocol-foundation.sentry.io/issues/5462663218/?project=4505074572197888&query=is%3Aunresolved+issue.category%3Aerror+quota&referrer=issue-stream&statsPeriod=30d&stream_index=0

Comes from utils/managedLocalStorage.ts