[Webkit-unassigned] [Bug 273827] REGRESSION (iOS 17.4): IndexedDB failing with "UnknownError: Connection to Indexed Database server lost."

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 28 19:58:57 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273827

--- Comment #12 from Luke Abbott <luke at playingbyear.com> ---
(In reply to Sihui Liu from comment #10)
> By ".open() does not work", do you mean it returns error, or no event
> (success, error, block, etc) is fired, or it returns success but the opened
> connection will be lost again (e.g. the UnknownError happens soon)?

It looks like the call to .open() errors with "UnknownError: Connection to Indexed Database server lost. Refresh the page to try again".

I say this because every error log I'm looking at in Sentry is hitting a line in Dexie[1] that writes to the console when .open() fails.

That said, I am not 100% sure whether it's the call to .open() that fails, or the following read of the database that Dexie does immediately to determine schema. But I strongly suspect it is the former. (Not easy for me to deploy a test right now.)

> Also, do you receive close event on previous connection which gets the
> UnknownError?

It does not appear that the close event is being fired. Rather, Dexie is trying to reopen the connection because some operation hits an InvalidStateError which prompts the library to close-and-reopen the connection.

[1]: https://github.com/dexie/Dexie.js/blob/a09b699dfa5253faad604553c15c34d76f05b167/src/classes/dexie/dexie-open.ts#L137

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240529/83306d95/attachment-0001.htm>


More information about the webkit-unassigned mailing list