En utilisant AWS re:Post, vous acceptez les AWS re:Post Conditions d’utilisation

前端开始活体检测时,遇到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 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an
profile picture
EXPERT
vérifié il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions