Closed vldkhh closed 10 months ago
@vldkhh @L03TJ3 this is server error happens if some of the following data/params/payload fields absent:
if (!user || !enrollmentIdentifier || !payload || !sessionId || !provider.isPayloadValid(payload)) {
throw new Error('Invalid input')
}
const faceSnapshotFields = [
'sessionId',
'faceScan',
'auditTrailImage',
'lowQualityAuditTrailImage',
'idScan',
'idScanFrontImage',
'idScanBackImage'
]
isPayloadValid(payload: any): boolean {
return !faceSnapshotFields.some(field => !payload[field])
}
So
verify/face
- not a case I see it's setfaceSnapshotFields
in JSON payload - most probably the case. FaceTec may remove/change/rename some of those fields in latest version. so need to update this array items. look what's sending to server@johnsmith-gooddollar yes was the last point got fixed on server side now
@sirpy @johnsmith-gooddollar @L03TJ3 retested, now it works
[BUG] 'Invalid input' error during the FV flow
Steps: 1) go to the dev wallet app 2) go through the FV flow ( you can use this route - AppNavigation/Dashboard/FaceVerificationIntro?from=Claim&route=Claim) 3) observe the result
Actual result: Something went wrong on our side screen is shown
Expected result: FV flow works as expected
Env: dev.gooddollar.org 2.25.0 // Google Chrome
Attachments: Private Zenhub Image