vuex-easy-firestore icon indicating copy to clipboard operation
vuex-easy-firestore copied to clipboard

cannot read resolve of undefined

Open mesqueeb opened this issue 4 years ago • 7 comments

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.

mesqueeb avatar Sep 24 '20 11:09 mesqueeb

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)

M0rph3v5 avatar Oct 19 '20 11:10 M0rph3v5

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

FricoRico avatar Oct 19 '20 11:10 FricoRico

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

mesqueeb avatar Oct 20 '20 01:10 mesqueeb

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.

FricoRico avatar Nov 02 '20 11:11 FricoRico

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?

M0rph3v5 avatar Nov 09 '20 11:11 M0rph3v5

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

louisameline avatar Nov 09 '20 13:11 louisameline

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

riksnelders avatar Dec 13 '21 14:12 riksnelders