Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“Error during storage.set: Quota exceeded” in chrome extension developing

var bk = new Bookmark();
bk.link=blink;
bk.title=btitle;
bk.tags=["11","22"];
for(var i=0;i<20;i++)
{
bks.push(bk);}
chrome.storage.sync.set({"bookmarks":bks});

I'm developing a simple chrome extension. I use chrome.storage to store data,because it can save objects. when I store a small array,it get “Error during storage.set: Quota exceeded",the size of the array is so small and I had set "unlimitedStorage" in permissions. "permissions": ["tabs", "http:///","cookies","storage","unlimitedStorage"] Can anyone help? Thanks very much!

like image 476
neversion Avatar asked Sep 17 '12 01:09

neversion


1 Answers

unlimitedStorage is only applicable for client-side storage. chrome.storage.sync has a storage limit of only 100kb, and only 4kb for each item.

like image 107
madhoe Avatar answered Sep 24 '22 03:09

madhoe