-
Notifications
You must be signed in to change notification settings - Fork 23
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
Bugnsnag error: Cannot read property 'syncEndTime' of null #1178
Comments
Was unable to simulate this locally. Changed the logic to be in line with other similar existing checks to hopefully prevent this from occurring. |
wasLastCompletedSyncDoneMoreThanHalfAnHourAgo() was supposed to return true to allow automatic sync in following scenarios:
As per the code fix done as part of this card, we'll miss out on the first case. |
Able to simulate the original error if there are no completed records in sync telemetry. |
https://app.bugsnag.com/samanvay-research-and-development-foundation/avni-client/errors/654b8b8ced7ec300080c5707
Testing notes
This issue does not break the UI currently as it is within a try/catch.
Needs to be tested with non dev apk (bugsnag not notified in dev apk) or if testing in dev APK following line should not be printed:
[ErrorHandler][Debug] Cannot read property 'syncEndTime' of null
Can simulate this by testing with a user with no fast sync setup, first login on a device (no previous sync telemetry records) and background sync enabled.
The text was updated successfully, but these errors were encountered: