Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Using Firefox: "Add mutation error" when saving New Patient data #2386

Open
djiwandou opened this issue Sep 10, 2020 · 5 comments
Open

Using Firefox: "Add mutation error" when saving New Patient data #2386

djiwandou opened this issue Sep 10, 2020 · 5 comments
Labels
🐛bug issue/pull request that documents/fixes a bug
Milestone

Comments

@djiwandou
Copy link

djiwandou commented Sep 10, 2020

🐛 Bug Report

Fail to save new patient data in localhost and also in https://staging.hospitalrun.io/patients/new -> Create New Patient -> Save, only when opened using Firefox (normal in Chrome)

To Reproduce

Steps to reproduce the behavior:

  1. Open https://staging.hospitalrun.io/ or run through localhost:3000 (using Firefox)
  2. Fill in new patient data -> Click button Save
  3. Check console log and found this error message
error: true
message: "unknown"
name: "indexed_db_went_bad"
reason: "A mutation operation was attempted on a database that did not allow mutations."
stack: ""
status: 500

Screen Shot 2020-09-10 at 11 16 32

Expected behavior

This issue is not happening in Chrome, I could add -> save new patient data normally

Environment

  • node version: 14.4.0
  • os: Mac
  • browser: Firefox
@jackcmeyer jackcmeyer added help wanted indicates that an issue is open for contributions 🐛bug issue/pull request that documents/fixes a bug LOE - unkown indicates that the level of effort to complete issue is unknown (likely more research is needed) labels Sep 11, 2020
@jackcmeyer jackcmeyer added this to the v2.0 milestone Sep 11, 2020
@ArtemGoldsmith
Copy link

Looks like this issue happens only in Firefox private mode as it blocks offline storage for all sites in the permissions manager which disables IndexedDB

@djiwandou
Copy link
Author

Hi @ArtemGoldsmith it could be possible because I also used incognito mode frequently, but tried just now using normal mode Firefox this issue is still happening on https://staging.hospitalrun.io/patients/new
cheers

@blestab
Copy link
Contributor

blestab commented Oct 3, 2020

Looks like this issue happens only in Firefox private mode as it blocks offline storage for all sites in the permissions manager which disables IndexedDB

Yep, see - https://bugzilla.mozilla.org/show_bug.cgi?id=1639542

@blestab
Copy link
Contributor

blestab commented Oct 3, 2020

Hi @ArtemGoldsmith it could be possible because I also used incognito mode frequently, but tried just now using normal mode Firefox this issue is still happening on https://staging.hospitalrun.io/patients/new
cheers

Hi @djiwandou, In normal Firefox (not in private mode) I cannot seem to reproduce this issue. What Firefox version were you using?

@matteovivona matteovivona added hacktoberfest and removed LOE - unkown indicates that the level of effort to complete issue is unknown (likely more research is needed) help wanted indicates that an issue is open for contributions labels Oct 7, 2020
@baoqchau
Copy link
Contributor

@blestab I can confirm that the problem only exists in private mode on Firefox, but works as expected in regular one. I'm using Firefox 86 with Windows 10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛bug issue/pull request that documents/fixes a bug
Projects
None yet
Development

No branches or pull requests

6 participants