Giter Club home page Giter Club logo

Comments (7)

flawiddsouza avatar flawiddsouza commented on August 17, 2024 1

Lost data though as I cleared site data in browser. Might have to take regular backups from now on. Thanks for the help

Oh no. Clearing site data will cause data loss. Yes, please do take regular backups when you can. Will be adding a configurable limit to response history. That will prevent this issue to a high extent. Will keep this issue open until then.

from restfox.

flawiddsouza avatar flawiddsouza commented on August 17, 2024

Hi, can you expand one of these:
image

Seems like Restfox is unable to open indexeddb. Can you give me the version of your chrome browser?

Also, can you visit this url https://mdn.github.io/learning-area/javascript/apis/client-side-storage/indexeddb/notes/ and add a note using their ui to check if indexeddb is working properly outside of Restfox? If that also fails, then something is wrong with chrome or maybe your main drive doesn't have much disk space left.

from restfox.

manueljeffin avatar manueljeffin commented on August 17, 2024

Chrome version:
Version 107.0.5304.110 (Official Build) (x86_64)

image

image

Attempt to create a new note ends up in below error

image

from restfox.

flawiddsouza avatar flawiddsouza commented on August 17, 2024

Thanks. Since you only have only 11.55 GB left, it might actually be space issue. According to this: https://web.dev/storage-for-the-web/#how-much, a website can use 60% of the total disk space. Maybe we're hitting that limit. I assume you do a lot of multipart requests and that might be the reason. Since we store the response & request history of each request, it might be eating a lot of storage. I'll have to add a hard limit on the count of response history stored per request to prevent this issue.

Can you run this js code in chrome devtools on restfox.dev. This will help us find out how much storage has been used and how much is left. We might find our culprit there.

if (navigator.storage && navigator.storage.estimate) {
  const quota = await navigator.storage.estimate();
  // quota.usage -> Number of bytes used.
  // quota.quota -> Maximum number of bytes available.
  const percentageUsed = (quota.usage / quota.quota) * 100;
  console.log(`You've used ${percentageUsed}% of the available storage.`);
  const remaining = quota.quota - quota.usage;
  console.log(`You can write up to ${remaining} more bytes.`);
}

The issue can probably be temporarily resolved by freeing some additional disk space.

from restfox.

manueljeffin avatar manueljeffin commented on August 17, 2024

image

from restfox.

flawiddsouza avatar flawiddsouza commented on August 17, 2024

This is what I see, when I run this snippet in my console:
image

The minus value doesn't look good.

Can you run this, so we can see the actual quota values:

if (navigator.storage && navigator.storage.estimate) {
  const quota = await navigator.storage.estimate();
  const percentageUsed = (quota.usage / quota.quota) * 100;
  console.log(`Available quota: ${quota.quota} bytes`);
  console.log(`Used quota: ${quota.usage} bytes`);
}

from restfox.

manueljeffin avatar manueljeffin commented on August 17, 2024

Restarted my system and now things seem fine.

image

Lost data though as I cleared site data in browser. Might have to take regular backups from now on. Thanks for the help

from restfox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.