前端开始活体检测时,遇到Request has invalid parameters的报错

0

按照https://ui.docs.amplify.aws/react/connected-components/liveness的步骤进行配置后,前端开始活体检测时,出现Request has invalid parameters报错,不清楚是哪个参数的问题,要如何排查 环境: Node: v16.20.1 aws-amplify: 5.3.13 @aws-amplify/ui-react: 5.3.3 @aws-amplify/ui-react-liveness: 2.0.10 "overrides": { "@aws-amplify/rtn-push-notification": "1.1.7" }

1 Answer
0

Thank you for reaching out to us regarding the above query.

For troubleshooting the error, you could check or refer to the below points :

  1. Confirm if you are logging the error while creating the FaceLiveness session :
<FaceLivenessDetector
    sessionId={createLivenessApiData.sessionId}
    region="us-east-1"
    onAnalysisComplete={handleAnalysisComplete}
    onError={(error) => {
        console.error(error);
    }}
/> 
  1. The initial API call made to Rekognition is the StartFaceLivenessSession API call, hence, you can check the network requests being made or the CloudTrail events to check the request. You may refer to the StartFaceLivenessSession API documentation to see the required parameters for the API.
  1. You can also refer to the below documentation which discusses the steps in detailed on how to detect real users with aws amplify and face liveness : [+]. https://aws.amazon.com/blogs/mobile/detect-real-users-with-aws-amplify-and-face-liveness/

Having said that, in case you face further challenges, please feel free to open a support case with AWS using the following link.

AWS
SUPPORT ENGINEER
answered 4 months ago
profile picture
EXPERT
reviewed 23 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions