Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulkAdd error on Safari "Attempt to see if key exists in objectstore without an in-progress transaction" #1829

Open
econte-sprig opened this issue Nov 22, 2023 · 2 comments

Comments

@econte-sprig
Copy link

We are intermittently seeing the following error uniquely in Safari when calling bulkAdd.

events.bulkAdd(): 1 of 1 operations failed. Errors: UnknownError: Attempt to see if key exists in objectstore without an in-progress transaction

Our code using dexie is unremarkable and looks like this:

  await replayStorage.events.bulkAdd(events);

It looks to be the same issue as reported in this other project using indexed-db. And their associated fix is here

@hbkrunal
Copy link

hbkrunal commented Dec 15, 2023

I am also facing the same issue for below user agents

  • Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
  • Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15

Its strange that i am doing clear as well before i have used bulkAdd and still i am getting the same error,

@dfahlander
Copy link
Collaborator

@econte-sprig, @hbkrunal Is this possibly reproducable? Or does it happen extremely sporadic? Of there's any way to reproduce this - be it running something repro in a loop thousands of times and get the issue randomly, that would also count as some kind of repro. If so, there might be chances I could find a way to workaround it when it happens similarly to how we work around #543 and #613 which occur sporadically in chrome och Safari but we solve it by detecting UnknownError and retry the action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants