Giter Club home page Giter Club logo

Comments (12)

thaddmt avatar thaddmt commented on July 28, 2024

Our component doesn't officially support react native so would be curious to see example code as that would really be our only way to help debug

from amplify-ui.

marcelcaferati avatar marcelcaferati commented on July 28, 2024

Our component doesn't officially support react native so would be curious to see example code as that would really be our only way to help debug

i am sorry, i selected by mystake, it is not react native, it is regular react

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

Understood, do you still have some sample code or anything that can help us in debugging?

Is it only happening with certain device and browser combinations?

from amplify-ui.

marcelcaferati avatar marcelcaferati commented on July 28, 2024

Understood, do you still have some sample code or anything that can help us in debugging?

Is it only happening with certain device and browser combinations?

Sure, but i dont think I have much for you to go by, I really use the very basic setup form aws liveness tutorial, this is basically how I start the component and my backend is pretty much the very basic create session and get session in node, just like the tutorial

<FaceLivenessDetector displayText={languages[i18n.language]} sessionId={sessionId} region={'us-east-1'} onAnalysisComplete={handleAnalysisComplete} onError={setLivenessError} components={{ PhotosensitiveWarning: () => { return ( <></> ); } }} />

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

Is it happening on any device or browser specifically? Anything that can help us try to reproduce?

from amplify-ui.

marcelcaferati avatar marcelcaferati commented on July 28, 2024

Is it happening on any device or browser specifically? Anything that can help us try to reproduce?

I don't think I can provide an accurate way to reproduce it, it doesn't happen too often like the other error I reported, unfornutally we didn't have any users that sent us screen recording about this errors

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

The error itself looks like it could be from the handleAnalysisComplete call. Can you share your set up for calling the getFacelivenessSessionResults API and for the createFaceLivenessSession APIs?

After looking into the session id you posted it looks like from the service everything went successfully so my suspicion would be there may have been an error when calling getFacelivenessSessionResults

from amplify-ui.

marcelcaferati avatar marcelcaferati commented on July 28, 2024

Sure!

our handleAnalysisComplete will call this call

const response = await get({
            apiName: "liveness",
            path: "/session/get", options: {
                queryParams: {
                    sessionId: sessionId,
                }
            }
        }).response
app.get("/session/get", async function (req, res) {
    const rekognition = getRekognitionClient();
    const response = await rekognition.getFaceLivenessSessionResults({
        SessionId: req.query.sessionId,
    });
    res.status(200).json({response});
});

Then our back end will perfom this operation to get the results

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

Hm yeah I don't see any particular issue there, but from the error you posted above it looks like the client received an error while calling onAnalysisComplete. Are there any server logs that correspond with the session id you posted?

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

Are you trying to parse out the S3Object from the audit image? That lines up with the shape of the response from getLivenessSession here -

https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceLivenessSessionResults.html#API_GetFaceLivenessSessionResults_ResponseSyntax

https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AuditImage.html

from amplify-ui.

marcelcaferati avatar marcelcaferati commented on July 28, 2024

Are you trying to parse out the S3Object from the audit image? That lines up with the shape of the response from getLivenessSession here -

https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetFaceLivenessSessionResults.html#API_GetFaceLivenessSessionResults_ResponseSyntax

https://docs.aws.amazon.com/rekognition/latest/APIReference/API_AuditImage.html

We are not trying to parse them no, but the error seems to be gone, without any aditional changes, I haven't gotten that error anymore

from amplify-ui.

thaddmt avatar thaddmt commented on July 28, 2024

Understood, closing this for now but please re-open if you feel like you find any other issues!

from amplify-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.