noita-tools icon indicating copy to clipboard operation
noita-tools copied to clipboard

Suggestion - Better DB error page (Site down - There was an error loading the database: Error: A mutation operation was attempted [...])

Open quiddity-wp opened this issue 2 years ago • 5 comments

Tested: https://www.noitool.com/ Tested: https://www.noitool.com/?seed=2111427201 Both:

There was an error loading the database: Error: 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.

quiddity-wp avatar Sep 11 '22 02:09 quiddity-wp

Hey! Looks like there was some error with the DB.

Can you describe how it happened?

Thanks!

If you are okay with just resetting the local db, then do this:

In Chrome, go to Settings > Privacy and Security > Cookies and other site data > All cookies and Site Data > Search for Noitool > Click delete

TwoAbove avatar Sep 11 '22 21:09 TwoAbove

This can also be caused if you visited the site with Edge with extra security settings (which does not allow local dbs) or in Incognito mode

TwoAbove avatar Sep 11 '22 21:09 TwoAbove

Oh! Yup, I was loading it in an Incognito window. Solved! Sorry for the distraction, and thanks again for the site!

quiddity-wp avatar Sep 12 '22 00:09 quiddity-wp

It's alright! There should have been an error message about being in an incognito window - I'll double check that it's properly showing.

What browser are you using? (Ideally a version + OS combo)

TwoAbove avatar Sep 12 '22 03:09 TwoAbove

I'll update that error page to be a bit more informative

TwoAbove avatar Sep 12 '22 03:09 TwoAbove

Updated in https://github.com/TwoAbove/noita-tools/pull/257

TwoAbove avatar Dec 10 '22 15:12 TwoAbove