-
Notifications
You must be signed in to change notification settings - Fork 120
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
LocationOfInterestRepository.getOfflineLoi java.lang.IllegalStateException - LOI not found #2773
Comments
@shobhitagarwal1612 is this the correct user behaviour? as per the code suspend fun getOfflineLoi(surveyId: String, loiId: String): LocationOfInterest {
val survey = localSurveyStore.getSurveyById(surveyId) ?: error("Survey not found: $surveyId")
return localLoiStore.getLocationOfInterest(survey, loiId) ?: error("LOI not found: $loiId")
} it should crash, but, is it good to crash or should we do something better for the user behaviour? |
Are you sure that the application is crashing? |
it says WDYT? BTW, the stack trace is from firebase. |
From crash logs I found that this is happening in |
@anandwana001 is this one still in progress by you? |
Part 1 on crashes resolved. Suggestion to check logs to determine the LOI affected and whether they are orphaned from the upload synch. Happening on 9 different surveys |
@anandwana001 Hint in logs breadcrumbs in Firebase Crashlytics:
|
Request to prioritize this before next Field trip @jabramowitz5 FYI |
Edge case to test:
What happens when the job is deleted before the pending mutations are synced? |
coming after testing on deleted project after collecting data @shobhitagarwal1612 |
Reopening to ensure we figure out the root cause to avoid data loss. |
Total events by version
0.1.10 (20)
15
for the last 7 days
The text was updated successfully, but these errors were encountered: