Skip to content

Web app crashed when opened in private tab #208

Closed
@julianfoad

Description

@julianfoad
  • I had the web-app of my self-hosted ntfy instance open in a normal Firefox tab. It was working fine, showing several subscriptions.
  • I opened a Firefox private browsing tab and opened the web-app of my self-hosted ntfy instance, https://ntfy.example.org.
  • The app opened up showing an error page instead of the expected content: "Oh no, ntfy crashed" with this stack trace:
DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.
 InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.
  at undefined (DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.:undefined:undefined)
  at undefined ( InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.:undefined:undefined)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:16613:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:16801:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:15440:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:10172:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:10929:1)
  at from (../node_modules/dexie/dist/modern/dexie.min.mjs:11290:1)

DatabaseClosedError: InvalidStateError A mutation operation was attempted on a database that did not allow mutations.
 InvalidStateError: A mutation operation was attempted on a database that did not allow mutations.
  at Ym@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:950278
  at Nf@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:883982
  at n@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:923169
  at P@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:355181
  at S@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:354906
  at C@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:355291
  at Ff@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:883242
  at im@https://ntfy.foad.me.uk/static/js/main.3e6ef68a.js:2:919841
  at Xm
  • I can reproduce it at the moment: any time I open it in a private-mode tab it does the same.
  • Version: as served by the Docker image id sha256:2fd60d0cd40195ca2d41e32131f79cdfabc6e3f766bf6acc4efcb5524771ce39.
  • Config: the only config option I set is --behind-proxy.
  • I am not waiting on a fix: I don't need this to work, I just stumbled across it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-appWeb app things🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions