hospitalrun-frontend icon indicating copy to clipboard operation
hospitalrun-frontend copied to clipboard

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

Open djiwandou opened this issue 4 years ago • 5 comments

🐛 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

djiwandou avatar Sep 10 '20 06:09 djiwandou

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

ArtemGoldsmith avatar Sep 14 '20 22:09 ArtemGoldsmith

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

djiwandou avatar Sep 15 '20 10:09 djiwandou

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 avatar Oct 03 '20 05:10 blestab

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 avatar Oct 03 '20 05:10 blestab

@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

baoqchau avatar Mar 13 '21 17:03 baoqchau