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

cannot read resolve of undefined #353

Open
mesqueeb opened this issue Sep 24, 2020 · 7 comments
Open

cannot read resolve of undefined #353

mesqueeb opened this issue Sep 24, 2020 · 7 comments

Comments

@mesqueeb
Copy link
Owner

mesqueeb commented Sep 24, 2020

https://github.com/mesqueeb/vuex-easy-firestore/blob/master/src/module/actions.ts#L778

I haven't tracked the cause yet, but sometimes this is undefined.

@M0rph3v5
Copy link

M0rph3v5 commented Oct 19, 2020

I'm experiencing this as well, can this be handled properly so it doesn't end up throwing the error? (and spam in our error reporting in sentry)

@FricoRico
Copy link

We're seeing the same issue too when trying to closeDBChannel in order to switch documents.

@mesqueeb
Copy link
Owner Author

I have not yet been able to find the reproduction steps for this issue. Any luck reliably reproducing it? Much appreciated!!

@FricoRico
Copy link

After some investigation it seems to happen after a user has been inactive for a couple of minutes. Perhaps Firebase closes the connection when no new requests are made? I'm not familiar with the internal workings.

This seems to be the only reliable reproduction scenario.

@M0rph3v5
Copy link

M0rph3v5 commented Nov 9, 2020

okay this is pretty bad, it causes everything to stop functioning if the page is kept open long. If we can't fix this soon we'll have to replace the package probably. Any good alternatives?

@louisameline
Copy link
Collaborator

No alternative that I know of, but you know you can debug too, right?
I'll take a quick look if I can.

@riksnelders
Copy link

I know this error happens when navigating away from a page during the loading of the openDBChannel.

I'm also having issues front end not updating when inactive for too long.

Lets say with 2 users
User 1 constantly works with a tablet or pc, records keep adding up, as it should
User 2 with same page open takes a look at the page then comes back after 15+- mintes and page is missing records compared to User 1

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

5 participants