hospitalrun-frontend
hospitalrun-frontend copied to clipboard
Using Firefox: "Add mutation error" when saving New Patient data
🐛 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:
- Open https://staging.hospitalrun.io/ or run through localhost:3000 (using Firefox)
- Fill in new patient data -> Click button Save
- 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

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
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
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
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
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?
@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