-
Notifications
You must be signed in to change notification settings - Fork 928
FIRESTORE ( 6.6.2 ) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: FirebaseError #2711
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
@yogeshpatil143 Sorry to hear about your troubles. The IndexedDb error you are describing ("The transaction was aborted") was addressed by SDK version 7.2.1 . Do you mind upgrading your SDK build and letting us know if this issue still occurs with the latest SDK version? |
Hey @yogeshpatil143. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
I can confirm that I am seeing this issue (albeit sparsely) on 7.6.2 with OSX 10.15.3 As a side-note, I have also seen this error with Chrome on Windows 10. |
@nVitius You should see this a lot less with SDK versions 7.2.1 and later. It does however seem that we were not able to completely solve this. If you do encounter this issue with the latest Firestore SDK, you will unfortunately have to reload your PWA/webpage or create a new Firestore instance. We are exploring ways to re-architect our SDK to be more robust agains IndexedDb failures in general, but this will take us a bit of time. |
yes |
@schmidt-sebastian is there an issue/tracking/doc/information that says more about "We are exploring ways to re-architect our SDK to be more robust agains IndexedDb failures in general, but this will take us a bit of time." |
While all our development takes place on public GitHub repositories, most roadmap and design decisions are made using internal tools. This allows us to gather feedback from a variety of groups within Google and in general streamlines our development process. We will keep you updated as we get close to releasing a fix, but in general we can't comment on release dates in advance. |
@schmidt-sebastian How do I create a new Firestore instance when this error happens? edit: I'm using AngularFire and maybe js-sdk uses another function name to query the collection, but the approach to recover would be the same. |
@sagits You have to delete the FirebaseApp and recreate the app, which will allow you to get a new instance of Firestore. As far as I can tell, we only have a single codepath left ( Note that internal errors are surfaced ad rejected Promises and not as exceptions. |
@schmidt-sebastian Thank you for answering. You said that "internal errors are surfaced as rejected Promises and not as exceptions". This is the default approach for the latest version? I'm asking because I have found in users answers from other issues (with the same problem) that to reload when I have this error I need to use something like the code below (because the error happens outside the promise .catch):
So now something like this should work?:
Thanks in advance. |
@sagits You no longer need to recreate the Firestore instance. You can just retry the operation (when the browser is back in the foreground for example). We will return a rejected Promise with a message that begins with "IndexedDB transaction failed:". |
Thanks @schmidt-sebastian. After updating to the latest firebase-js-sdk the error is not happening anymore. But I still have a problem related to offline usage in our app (which I think is related to that issue):
Is it possible to do something to speed up the "online" state in Firebase after recovering from the offline state (if I look at the console, the firebase sdk keeps trying to reach the server, but it still fails a lot of times before it reconnects)? Thanks in advance. |
As of Which browser are you using? |
Closing this due to lack of updates. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Steps to reproduce:
This error occured after inactivity in mobile browser for 5 minutes, make sure you installed. firebase version 6.6.2 in your app
Relevant Code:
https://stackblitz.com/fork/firebase-issue-sandbox
The text was updated successfully, but these errors were encountered: