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

Unable to login taqi@ihmp giving sync fail error #1162

Closed
AchalaBelokar opened this issue Oct 31, 2023 · 4 comments
Closed

Unable to login taqi@ihmp giving sync fail error #1162

AchalaBelokar opened this issue Oct 31, 2023 · 4 comments
Assignees
Labels

Comments

@AchalaBelokar
Copy link

AchalaBelokar commented Oct 31, 2023

Describe the bug
Unable to login taqi@ihmp giving sync fail error - happening after clearing the fast sync db
"Sync Failed
mandatory entities error"
also Not working for hr@calcutta_kids
"10-31 16:29:56.420 6550 6622 D ReactNativeJS: [4:29:56:420] [SyncService][Debug] Creating entity create functions for schema ProgramConfig
10-31 16:29:56.420 6550 6622 D ReactNativeJS: [4:29:56:420] [SyncService][Debug] Syncing - ProgramConfig with subType:
10-31 16:29:56.421 6550 6622 D ReactNativeJS: [4:29:56:421] [SyncService][Debug] Creating entity create functions for [object Object]
10-31 16:29:56.441 6550 6622 E ReactNativeJS: 'SyncComponent-Sync', ' are mandatory for ProgramConfig, uuid,visitSchedule,program,atRiskConcepts, {}', 'Error: are mandatory for ProgramConfig, uuid,visitSchedule,program,atRiskConcepts\n at create (address at index.android.bundle:1:1065050)\n at anonymous (address at index.android.bundle:1:1208897)\n at anonymous (address at index.android.bundle:1:1208810)\n at map (native)\n at anonymous (address at index.android.bundle:1:1208796)\n at write (native)\n at write (address at index.android.bundle:1:1065501)\n at bulkSaveOrUpdate (address at index.android.bundle:1:1208768)\n at persistAll (address at index.android.bundle:1:1489918)\n at processResponse (address at index.android.bundle:1:1492973)\n at anonymous (address at index.android.bundle:1:1493232)\n at tryCallOne (/root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)\n at anonymous (/root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)\n at apply (native)\n at anonymous (address at index.android.bundle:1:245876)\n at _callTimer (address at index.android.bundle:1:244870)\n at _callReactNativeMicrotasksPass (address at index.android.bundle:1:245035)\n at callReactNativeMicrotasks (address at index.android.bundle:1:246957)\n at __callReactNativeMicrotasks (address at index.android.bundle:1:97009)\n at anonymous (address at index.android.bundle:1:96148)\n at __guard (address at index.android.bundle:1:96886)\n at flushedQueue (address at index.android.bundle:1:96059)\n at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:96002)'
10-31 16:29:56.456 6550 6622 D ReactNativeJS: [4:29:56:456] [SyncComponent::AC][Debug] Dispatching action: ""SyncTelemetryActions.SYNC_FAILED""
10-31 16:29:56.469 6550 6622 D ReactNativeJS: [4:29:56:469] [SyncComponent::AC][Debug] Dispatched action completed: ""SyncTelemetryActions.SYNC_FAILED"" {""syncing"":true,""isConnected"":true,""progress"":0.3299999999999998,""message"":""downloadForms"",""syncMessage"":""syncingData"",""startSync"":false,""backgroundSyncInProgress"":false,""startTime"":1698749867071,""numberOfPagesProcessedForCurrentEntity"":0,""totalNumberOfPagesForCurrentEntity"":1}
10-31 16:29:56.469 6550 6622 D ReactNativeJS: [4:29:56:469] [SyncComponent::AC][Debug] Dispatching action: ""SYNC.ON_ERROR""
10-31 16:29:56.478 6550 6622 D ReactNativeJS: [4:29:56:478] [SyncComponent::AC][Debug] Dispatched action completed: ""SYNC.ON_ERROR"" {""syncing"":false,""isConnected"":true,""progress"":0.3299999999999998,""message"":""downloadForms"",""syncMessage"":""syncingData"",""startSync"":false,""backgroundSyncInProgress"":false,""startTime"":1698749867071,""numberOfPagesProcessedForCurrentEntity"":0,""totalNumberOfPagesForCurrentEntity"":1}
10-31 16:29:56.478 6550 6622 W ReactNativeJS: registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key 'syncJob'
10-31 16:29:56.479 6550 6622 I ReactNativeJS: [4:29:56:479] [AvniBackgroundJob-SyncJobSchedule][Info] Successfully scheduled
10-31 16:29:56.526 6550 6622 I ReactNativeJS: [4:29:56:526] [Sync][Info] Starting background sync
10-31 16:29:56.527 6550 6622 D ReactNativeJS: [4:29:56:527] [ErrorHandler][Debug] IsFatal=true TypeError: Cannot read property 'syncEndTime' of null
10-31 16:29:56.527 6550 6622 D ReactNativeJS: [4:29:56:527] [ErrorHandler][Debug] Cannot read property 'syncEndTime' of null
10-31 16:29:56.528 6550 6622 D ReactNativeJS: [4:29:56:528] [ErrorHandler][Debug] Creating frame array
10-31 16:29:56.528 6550 6622 D ReactNativeJS: [4:29:56:528] [ErrorHandler][Debug] Notifying Bugsnag TypeError: Fatal error: Cannot read property 'syncEndTime' of null"

To Reproduce
Steps to reproduce the behavior:

  1. login with taqi@ihmp
  2. Click on login button
  3. See error

Expected behavior
user is able to go home screen
Screenshots

test error
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Oct 31, 2023
@mahalakshme mahalakshme moved this from New Issues to Ready in Avni Product Oct 31, 2023
@petmongrels petmongrels moved this from Ready to In Progress in Avni Product Oct 31, 2023
@petmongrels petmongrels moved this from In Progress to Code Review Ready in Avni Product Oct 31, 2023
@petmongrels
Copy link
Contributor

commits 31st oct. this card - #1142

@petmongrels petmongrels self-assigned this Oct 31, 2023
@mahalakshme
Copy link
Contributor

backward compatibility testing ll be needed

@himeshr
Copy link
Contributor

himeshr commented Nov 1, 2023

@petmongrels the changes made for this card are in avni-models (master) branch and avni-client (master) branch.
But for release 5.1.0, we do not yet have a separate avni-models branch, should i have branched out avni-models there as well.?
I now see that you have branched out there.

@himeshr himeshr moved this from Code Review Ready to In Code Review in Avni Product Nov 1, 2023
@himeshr himeshr moved this from In Code Review to QA Ready in Avni Product Nov 1, 2023
@petmongrels
Copy link
Contributor

petmongrels commented Nov 1, 2023 via email

@AchalaBelokar AchalaBelokar moved this from QA Ready to In QA in Avni Product Nov 2, 2023
@AchalaBelokar AchalaBelokar moved this from In QA to QA Failed in Avni Product Nov 2, 2023
@AchalaBelokar AchalaBelokar moved this from QA Failed to Done in Avni Product Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

5 participants