Skip to content

Uncaught (in promise) FirebaseError: Remote Config: Error thrown when opening storage. Original error: A mutation operation was attempted on a database that did not allow mutations.. (remoteconfig/storage-open). #5502

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

Closed
artursOs opened this issue Sep 16, 2021 · 2 comments · Fixed by #3623
Assignees

Comments

@artursOs
Copy link

artursOs commented Sep 16, 2021

Describe your environment

  • Operating System version: macOS 11.5.2
  • Browser: Firefox 91.0.2 (private mode)
  • Firebase SDK version: 9.0.1 (and newer)
  • Firebase Product: firebase/remote-config

Describe the problem

In Firefox private mode and other browsers that don't support IndexDb.
Impossible to catch exception.

example code

import { getRemoteConfig } from 'firebase/remote-config'
....
try {
  config = getRemoteConfig()
} catch(e) {
// do some workaround here
}

console output

Uncaught (in promise) FirebaseError: Remote Config: Error thrown when opening storage. Original error: A mutation operation was attempted on a database that did not allow mutations.. (remoteconfig/storage-open).

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@hsubox76
Copy link
Contributor

We had a PR to add an isSupported() check to remote config that was never merged (#3623). It's somewhat outdated now so I will update and have it reviewed again.

@hsubox76 hsubox76 self-assigned this Sep 17, 2021
@firebase firebase locked and limited conversation to collaborators Oct 22, 2021
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.

4 participants