datenanfragen / website

The Datenanfragen.de website including the request PDF generator and company information database
https://www.datenanfragen.de
MIT License
95 stars 125 forks source link

Investigate "Uncaught UnknownError: Internal error." #1014

Open baltpeter opened 1 year ago

baltpeter commented 1 year ago

We've received the below error report.

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 

---

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 

---

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 

---

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 

---

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 

---

**Debug information:**

message := Uncaught UnknownError: Internal error.
type := error
colno := 18078
filename := https://www.datenanfragen.de/js/commons.bundle.gen.js
lineno := 18
error.code := 0
error.message := Internal error.
error.name := UnknownError
error.context := 
defaultPrevented := false
eventPhase := 2
isTrusted := true
returnValue := true
code_version := 1.0.0
user_agent := Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
url.href := https://www.datenanfragen.de/
url.origin := https://www.datenanfragen.de
url.protocol := https:
url.host := www.datenanfragen.de
url.hostname := www.datenanfragen.de
url.port := 
url.pathname := /
url.search := 
url.hash := 
baltpeter commented 1 year ago

The debug info isn't exactly helpful, unfortunately.

Searching for "Uncaught UnknownError: Internal error." only brings up IndexedDB problems, albeit with longer error messages. That would make this @zner0L's problem.

Maybe the code location is more helpful.

baltpeter commented 1 year ago

Maybe the code location is more helpful.

Not at all, I'm afraid. commons.bundle.gen.js:18:18078 is our rethrow function*.

* Which we should probably re-evaluate at some point. I feel like a lot of our usages of that stem from us not properly understanding promises early on…

baltpeter commented 1 year ago

Doesn't seem to be related to the browser either. Remarkably enough, I've managed to match it exactly (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36) but still wasn't able to reproduce the problem.

I think I'm out of ideas.

zner0L commented 1 year ago

Have you tried private mode? This might actually be related to IndexedDB as you suggested: https://stackoverflow.com/questions/74207049/internal-error-opening-backing-store-for-indexeddb-open

zner0L commented 1 year ago

Yes, I am pretty sure I can narrow it down to PrivacyAsyncStorage, since this is the only place where we use rethrow without any additional error message (oops, should've caught that earlier). I'll investigate.

zner0L commented 1 year ago

It might be due to a broken browser profile, which seems plausible to me (https://jasonsavard.com/forum/discussion/4233/unknownerror-internal-error-opening-backing-store-for-indexeddb-open), but I don't really know how to mitigate that. I think in this case I do want to throw an error, but the problem is not on our side.

baltpeter commented 1 year ago

Sounds plausible. Do you want to reply to the user?

zner0L commented 1 year ago

Yes, I'll do that.

baltpeter commented 1 year ago

@zner0L Any news?

zner0L commented 3 days ago

Neither me, nor the reporter were able to reproduce this, but it seems to be related to errors in the browser (configuration), so in #1166 I introduced changes to ignore this error and just fall back to localStorage.