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

[Activate survey] "Unexpected error has occurred" toast shown on slow connections #2880

Open
gino-m opened this issue Nov 27, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@gino-m
Copy link
Collaborator

gino-m commented Nov 27, 2024

Loading the survey times out with this ambiguous error. We should instead increase the timeout, and on a real time out show a more appropriate message.

This error is also incorrectly logged as:

12:01:46.005 SurveySele...vateSurvey  E  Failed to activate survey (Ask Gemini)
                                         java.lang.IllegalStateException: Survey G5EMk9isu4H0j0Yv0eiS not found in remote db
                                         	at com.google.android.ground.domain.usecases.survey.ActivateSurveyUseCase.invoke(ActivateSurveyUseCase.kt:43)
                                         	at com.google.android.ground.domain.usecases.survey.ActivateSurveyUseCase$invoke$1.invokeSuspend(Unknown Source:15)
                                         	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                         	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
                                         	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                                         	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                                         	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                         	at android.os.Handler.handleCallback(Handler.java:938)
                                         	at android.os.Handler.dispatchMessage(Handler.java:99)
                                         	at android.os.Looper.loopOnce(Looper.java:201)
                                         	at android.os.Looper.loop(Looper.java:288)
                                         	at android.app.ActivityThread.main(ActivityThread.java:7870)
                                         	at java.lang.reflect.Method.invoke(Native Method)
                                         	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                         	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
@gino-m gino-m added the type: bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant