前端开始活体检测时,遇到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" }

preguntada hace un año342 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
respondido hace un año
profile picture
EXPERTO
revisado hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas