aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
10 stars 25 forks source link

FaceLiveness.FaceLivenessDetectionError Code 1 #173

Closed qazwsx521943 closed 1 month ago

qazwsx521943 commented 2 months ago

Describe the bug

We received some user responses mentioning that they cannot go through the liveness test no matter how many times they try. After viewing our remote logs, we found out for some users they encounter the error: The operation couldn’t be completed. (FaceLiveness.FaceLivenessDetectionError error 1.).

Steps To Reproduce

This cannot be reproduced on my device or on our company’s QA devices.
But we are creating a sessionID server side, and passing the session ID to the FaceLivenessDetectorView initializer, and some of the users encounters this error code when we check the remote event logs.

Expected behavior

The FaceLiveness Detector view should start when accepting valid sessionID

Swift Liveness Version

1.3.2

Xcode version

15.2

Relevant log output

The operation couldn’t be completed. (FaceLiveness.FaceLivenessDetectionError error 1.)

Is this a regression?

No

Regression additional context

No response

OS Version

17.5.1

Device

iPhone 11 Pro

Specific to simulators

No response

Additional context

This is intermittent. This happens to some users and we are not sure why.

5d commented 2 months ago

Hi @qazwsx521943 ,

Thank you for bringing this issue to our attention. Our team will investigate to identify any possible causes. In the meantime, we don’t have an iPhone 11 Pro available for testing. Could you let us know the most recent device model reported by your customers as being affected?

thisisabhash commented 2 months ago

Hello, Could you please post the verbose logs from the remote logs? Alternatively, you can print the error received to determine the cause on your side. The error codes are listed here:

https://github.com/aws-amplify/amplify-ui-swift-liveness/blob/main/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionError.swift

ruisebas commented 1 month ago

Closing due to inactivity.

github-actions[bot] commented 1 month ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.