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

Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. #7829

Closed
praveenfsdev opened this issue Dec 1, 2023 · 3 comments · Fixed by #7890

Comments

@praveenfsdev
Copy link

Operating System

iOS 15, 16, 17 and Mac OS X 10.15

Browser Version

Safari, Mobile Safari and Chrome Mobile ios.

Firebase SDK Version

10.5.0

Firebase SDK Product:

Auth, Database

Describe your project's tooling

React with typescript

Describe the problem

Here is the error message which I was receiving from Bugsnag(Error tracking tool).
Screenshot from 2023-12-01 11-22-24
This error is not occurring always when I load the app. But this is happening often( around 4 times a day) for an users.

Steps and code to reproduce issue

There are no dedicated steps to reproduce. This is reproducing some times when an app is loading on ios and Mac os browsers.

@praveenfsdev praveenfsdev added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Dec 1, 2023
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Dec 1, 2023
@Stanzilla
Copy link

same here

@hsubox76
Copy link
Contributor

We can try to catch this error so it doesn't crash the app but I would also like to get at the root cause. According to the IndexedDB spec and the idb library docs, createObjectStore() shouldn't throw if called inside an upgrade callback, so something in the stack (Safari, the idb library, etc.) is not following spec. One thing that would be really helpful here would be to get a strong idea of what browsers it does and does not happen in. So far we've found that it happens in:

  • Safari on MacOS
  • any browser on iOS (which are all the same engine as Safari)

Does this happen on any non-Safari, non-iOS browsers?

@Stanzilla
Copy link

Checked our Sentry database since we get a lot of these as well, all mobile iOS Chrome & Safari.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants