{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/277","repository_url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox","labels_url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/277/comments","events_url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/277/events","html_url":"https://github.com/GoogleChromeLabs/sw-toolbox/issues/277","id":274428562,"number":277,"title":"Bug: Toolbox does not handle quote exceeded errors","user":{"login":"tarjei","id":211263,"avatar_url":"https://avatars3.githubusercontent.com/u/211263?v=4","gravatar_id":"","url":"https://api.github.com/users/tarjei","html_url":"https://github.com/tarjei","followers_url":"https://api.github.com/users/tarjei/followers","following_url":"https://api.github.com/users/tarjei/following{/other_user}","gists_url":"https://api.github.com/users/tarjei/gists{/gist_id}","starred_url":"https://api.github.com/users/tarjei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarjei/subscriptions","organizations_url":"https://api.github.com/users/tarjei/orgs","repos_url":"https://api.github.com/users/tarjei/repos","events_url":"https://api.github.com/users/tarjei/events{/privacy}","received_events_url":"https://api.github.com/users/tarjei/received_events","type":"User","site_admin":false},"labels":[{"id":201904508,"url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"jeffposnick","id":1749548,"avatar_url":"https://avatars1.githubusercontent.com/u/1749548?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffposnick","html_url":"https://github.com/jeffposnick","followers_url":"https://api.github.com/users/jeffposnick/followers","following_url":"https://api.github.com/users/jeffposnick/following{/other_user}","gists_url":"https://api.github.com/users/jeffposnick/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffposnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffposnick/subscriptions","organizations_url":"https://api.github.com/users/jeffposnick/orgs","repos_url":"https://api.github.com/users/jeffposnick/repos","events_url":"https://api.github.com/users/jeffposnick/events{/privacy}","received_events_url":"https://api.github.com/users/jeffposnick/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeffposnick","id":1749548,"avatar_url":"https://avatars1.githubusercontent.com/u/1749548?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffposnick","html_url":"https://github.com/jeffposnick","followers_url":"https://api.github.com/users/jeffposnick/followers","following_url":"https://api.github.com/users/jeffposnick/following{/other_user}","gists_url":"https://api.github.com/users/jeffposnick/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffposnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffposnick/subscriptions","organizations_url":"https://api.github.com/users/jeffposnick/orgs","repos_url":"https://api.github.com/users/jeffposnick/repos","events_url":"https://api.github.com/users/jeffposnick/events{/privacy}","received_events_url":"https://api.github.com/users/jeffposnick/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2017-11-16T08:16:01Z","updated_at":"2018-05-30T07:38:53Z","closed_at":null,"author_association":"NONE","body":"If a user has too little space on their harddrive or runs chrome on a partition that is space constrained in other ways, then the serviceworker may start up, but then crash with a cryptic message in the error log:\r\n\r\n```\r\nsw.js:1 Uncaught (in promise) DOMException: Quota exceeded.\r\nPromise rejected (async)\r\n(anonymous) @ sw-toolbox.js:40\r\n```\r\n\r\nIMHO, this is a clear bug. SW-toolbox should at least be able let the client run but with the files uncached. As it is, other sites work, but our site just hangs...\r\n\r\nHere's my sw.js:\r\n```js\r\n(global => {\r\n  'use strict'\r\n  // PRECACHE\r\n  // Load the sw-toolbox library.\r\n  global.importScripts('/v3-files/assets/sw-toolbox.js')\r\n\r\n  // Turn on debug logging, visible in the Developer Tools' console.\r\n  global.toolbox.options.debug = false\r\n\r\n  // Set up a handler for HTTP GET requests for /data/ URLs:\r\n\r\n\r\n  global.toolbox.router.get(/https:\\/\\/(localhost|elev.asku.no|gt)(:3000|)\\//,\r\n    global.toolbox.networkFirst, {})\r\n\r\n  global.toolbox.router.get(/https:\\/\\/(localhost|elev.asku.no|gt)(:3000|)\\/centrifugo.+/,\r\n    global.toolbox.networkFirst, {})\r\n\r\n  global.toolbox.router.get(/https:\\/\\/(localhost|elev.asku.no|gt)(:3000|)\\/v3-files\\/assets.+/,\r\n    global.toolbox.cacheFirst, {})\r\n\r\n  global.toolbox.router.get(/https:\\/\\/(localhost|elev.asku.no|gt)(:3000|)\\/v3-files\\/js.+/,\r\n    global.toolbox.networkFirst, {})\r\n\r\n  global.toolbox.router.get(/https:\\/\\/(localhost|elev.asku.no|gt)(:3000|)(media|uploads)\\/.+/,\r\n    global.toolbox.cacheFirst, {})\r\n\r\n  global.toolbox.router.get(/\\/fonts.gstatic.com\\/.+/,\r\n    global.toolbox.cacheFirst, {})\r\n\r\n  // By default, all requests that don't match our custom handler will use the\r\n  // toolbox.networkFirst cache strategy, and their responses will be stored in\r\n  // the default cache.\r\n  //  global.toolbox.router.default = global.toolbox.networkOnly\r\n  var preCacheFiles = []\r\n  global.toolbox.precache(preCacheFiles)\r\n    // Boilerplate to ensure our service worker takes control of the page as soon\r\n    // as possible.\r\n  global.addEventListener('install', event => event.waitUntil(global.skipWaiting()))\r\n  global.addEventListener('activate', event => event.waitUntil(global.clients.claim()))\r\n})(self)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/comments/393061560","html_url":"https://github.com/GoogleChromeLabs/sw-toolbox/issues/277#issuecomment-393061560","issue_url":"https://api.github.com/repos/GoogleChromeLabs/sw-toolbox/issues/277","id":393061560,"user":{"login":"tarjei","id":211263,"avatar_url":"https://avatars3.githubusercontent.com/u/211263?v=4","gravatar_id":"","url":"https://api.github.com/users/tarjei","html_url":"https://github.com/tarjei","followers_url":"https://api.github.com/users/tarjei/followers","following_url":"https://api.github.com/users/tarjei/following{/other_user}","gists_url":"https://api.github.com/users/tarjei/gists{/gist_id}","starred_url":"https://api.github.com/users/tarjei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarjei/subscriptions","organizations_url":"https://api.github.com/users/tarjei/orgs","repos_url":"https://api.github.com/users/tarjei/repos","events_url":"https://api.github.com/users/tarjei/events{/privacy}","received_events_url":"https://api.github.com/users/tarjei/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T07:38:53Z","updated_at":"2018-05-30T07:38:53Z","author_association":"NONE","body":"@jeffposnick I ended up migrating to workbox and changed some parameters to reduce the overall load. \r\nT"}}
{"actor":{"display_login":"tarjei"}}