dr5hn / countries-states-cities-database

🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities
https://dr5hn.github.io/countries-states-cities-database/
Open Data Commons Open Database License v1.0
7.33k stars 2.55k forks source link

Uncaught DOMException: The quota has been exceeded. #896

Open Erwane opened 3 hours ago

Erwane commented 3 hours ago

Hi, i've got this error on demo website (firefox and brave)

image

dosubot[bot] commented 3 hours ago

Hey @Erwane! 👋 I'm here to help you with any bugs or questions you have while waiting for a human maintainer. Let's squash those bugs together!

The "quota exceeded" error typically occurs when the storage limit for localStorage or IndexedDB is surpassed. Here are a few steps you can take to address this issue:

  1. Clear Storage: Try clearing localStorage or IndexedDB data in your browser to free up space.

  2. Check Data Size: Ensure that the data being stored isn't too large. LokiJS stores data in-memory and persists it, so check if the data size is manageable.

  3. Adjust Storage Strategy: Consider adjusting the storage strategy or limits in LokiJS if possible. However, specific configuration options for this weren't found in the repository.

  4. Error Handling: Implement error handling for storage-related exceptions to manage quota issues gracefully.

If the issue persists, reviewing the data being stored and optimizing it might help.

To continue talking to Dosu, mention @dosu.