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

DocumentReference.lambda$getViaSnapshotListener$1 issue #105

Open
skaradimitriou opened this issue Jun 29, 2024 · 1 comment
Open

DocumentReference.lambda$getViaSnapshotListener$1 issue #105

skaradimitriou opened this issue Jun 29, 2024 · 1 comment

Comments

@skaradimitriou
Copy link
Owner

Fatal Exception: com.google.firebase.firestore.FirebaseFirestoreException
Failed to get document because the client is offline.
com.google.firebase.firestore.DocumentReference.lambda$getViaSnapshotListener$1 (DocumentReference.java:331)
com.google.firebase.firestore.DocumentReference$$ExternalSyntheticLambda2.onEvent (D8$$SyntheticClass)
com.google.firebase.firestore.DocumentReference.lambda$addSnapshotListenerInternal$2$com-google-firebase-firestore-DocumentReference (DocumentReference.java:526)
com.google.firebase.firestore.DocumentReference$$ExternalSyntheticLambda1.onEvent (D8$$SyntheticClass)
com.google.firebase.firestore.core.AsyncEventListener.lambda$onEvent$0$com-google-firebase-firestore-core-AsyncEventListener (AsyncEventListener.java:42)
com.google.firebase.firestore.core.AsyncEventListener$$ExternalSyntheticLambda0.run (D8$$SyntheticClass)
androidx.profileinstaller.ProfileInstallReceiver$$ExternalSyntheticLambda0.execute (D8$$SyntheticClass)
com.google.firebase.firestore.core.AsyncEventListener.onEvent (AsyncEventListener.java:39)
com.google.firebase.firestore.core.QueryListener.raiseInitialEvent (QueryListener.java:196)
com.google.firebase.firestore.core.QueryListener.onOnlineStateChanged (QueryListener.java:127)
com.google.firebase.firestore.core.EventManager.handleOnlineStateChange (EventManager.java:259)
com.google.firebase.firestore.core.SyncEngine.handleOnlineStateChange (SyncEngine.java:422)
com.google.firebase.firestore.core.MemoryComponentProvider$RemoteStoreCallback.handleOnlineStateChange (MemoryComponentProvider.java:145)
com.google.firebase.firestore.remote.RemoteStore$$ExternalSyntheticLambda1.handleOnlineStateChange (D8$$SyntheticClass)
com.google.firebase.firestore.remote.OnlineStateTracker.setAndBroadcastState (OnlineStateTracker.java:181)
com.google.firebase.firestore.remote.OnlineStateTracker.handleWatchStreamFailure (OnlineStateTracker.java:154)
com.google.firebase.firestore.remote.RemoteStore.handleWatchStreamClose (RemoteStore.java:509)
com.google.firebase.firestore.remote.RemoteStore.access$200 (RemoteStore.java:60)
com.google.firebase.firestore.remote.RemoteStore$1.onClose (RemoteStore.java:188)
com.google.firebase.firestore.remote.AbstractStream.close (AbstractStream.java:356)
com.google.firebase.firestore.remote.AbstractStream.handleServerClose (AbstractStream.java:410)
com.google.firebase.firestore.remote.AbstractStream$StreamObserver.lambda$onClose$3$com-google-firebase-firestore-remote-AbstractStream$StreamObserver (AbstractStream.java:151)
com.google.firebase.firestore.remote.AbstractStream$StreamObserver$$ExternalSyntheticLambda3.run (D8$$SyntheticClass)
com.google.firebase.firestore.remote.AbstractStream$CloseGuardedRunner.run (AbstractStream.java:67)
com.google.firebase.firestore.remote.AbstractStream$StreamObserver.onClose (AbstractStream.java:137)
com.google.firebase.firestore.remote.FirestoreChannel$1.onClose (FirestoreChannel.java:151)
io.grpc.internal.DelayedClientCall$DelayedListener$3.run (DelayedClientCall.java:489)
io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute (DelayedClientCall.java:453)
io.grpc.internal.DelayedClientCall$DelayedListener.onClose (DelayedClientCall.java:486)
io.grpc.internal.ClientCallImpl.closeObserver (ClientCallImpl.java:567)
io.grpc.internal.ClientCallImpl.access$300 (ClientCallImpl.java:71)
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal (ClientCallImpl.java:735)
io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext (ClientCallImpl.java:716)
io.grpc.internal.ContextRunnable.run (ContextRunnable.java:37)
io.grpc.internal.SerializingExecutor.run (SerializingExecutor.java:133)
java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:462)

java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run (AsyncQueue.java:235)
java.lang.Thread.run (Thread.java:923)

@skaradimitriou
Copy link
Owner Author

Use NetworkExt getAndMapResponse in all repositories to handle that exception

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

1 participant