前端开始活体检测时,遇到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개 답변
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
지원 엔지니어
답변함 5달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠