Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMException: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. #48

Open
sebastianbenz opened this issue Aug 13, 2019 · 1 comment
Assignees

Comments

@sebastianbenz
Copy link
Contributor

I get this exception occasionally for the amp.dev serviceworker. I'm not 100% sure how to reproduce this. Loading the page -> clearing cache in DevTools -> reloading a few times sometimes triggers it.

amp-sw.js:1 Uncaught (in promise) DOMException: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
    at https://cdn.ampproject.org/sw/amp-sw.js:1:8225
    at new Promise (<anonymous>)
    at r.transaction (https://cdn.ampproject.org/sw/amp-sw.js:1:8188)
    at async r._call (https://cdn.ampproject.org/sw/amp-sw.js:1:8591)
    at async r.put (https://cdn.ampproject.org/sw/amp-sw.js:1:7118)
    at async i.setTimestamp (https://cdn.ampproject.org/sw/amp-sw.js:1:9212)
    at async y.updateTimestamp (https://cdn.ampproject.org/sw/amp-sw.js:1:11953)
    at async i.cacheDidUpdate (https://cdn.ampproject.org/sw/amp-sw.js:1:14642)
    at async Object.put (https://cdn.ampproject.org/sw/amp-sw.js:1:17694)
@westonruter
Copy link
Member

I've experienced this serveral times (months ago) when testing Workbox in the PWA plugin for WordPress. I think it's a browser issue, where after clearing browser data it sometimes takes IndexDB to become available again. That's just what I assume is going on.

@kristoferbaxter kristoferbaxter self-assigned this Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants