前端开始活体检测时,遇到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 Risposta
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
TECNICO DI SUPPORTO
con risposta 5 mesi fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande