Skip to content

Error: failure(FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue....")) #157

@lendk-dua

Description

@lendk-dua

Describe the bug

Hi Team,

We are using the Amplify SDK (AmplifyUiLiveness) version 1.2.16 and Amplify version 2.35.4. However we have encountered an issue where once the camera is initialized it does show the correct message - Move face in front of camera (when no face is in camera). As soon as I start scanning my face an error is returned as following.

failure(FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue...."))

I have attached the code sample as a screenshot.

Note: We are using custom credentials. We have tried to create a React sample project using the SDK and it seems to run perfectly fine with the same API endpoints used in our iOS App.

We believe that there might be an issue with the SDK. I have also tried to use an older version (1.2.9) but the issue still persists

Swift

Screenshot 2024-07-10 at 16 05 04 Screenshot 2024-07-10 at 16 05 18

React
carbon (5)

Steps To Reproduce

Steps to reproduce the behavior:
1. Create new swift UI CustomView 
2. Add FaceLivenessDetectorView in body
3. Add session Id
4. Add credential provider, including accessKey, secretAccessKey, expiration and sessionToken
5. Build app
6. Scan Face

Expected behavior

The camera feed should show all steps to scan face. Instead it is failing as soon as face is position within the camera frame.

Swift Liveness Version

1.2.16

Xcode version

15.4

Relevant log output

failure(FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue...."))

Is this a regression?

Yes

Regression additional context

No response

OS Version

iOS 17.5.1

Device

iPhone 14 Plus

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions