Comments (12)
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.
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.
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.
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.
Is it happening on any device or browser specifically? Anything that can help us try to reproduce?
from amplify-ui.
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.
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.
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.
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.
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_AuditImage.html
from amplify-ui.
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_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.
Understood, closing this for now but please re-open if you feel like you find any other issues!
from amplify-ui.
Related Issues (20)
- bug(react/Menu): Hitting enter on MenuButton does not trigger the menu to open
- The SignUp UI does not render few fields sometimes HOT 9
- WebSocket connection failed HOT 4
- bug(StorageManager/a11y): Upload status is not announced to screen readers
- SERVER_ERROR: Signature expired: 20240614T145057Z is now earlier than 20240614T154633Z HOT 1
- Allow further customization of Amplify
- onFileRemove does not receive updated key from processFile in StorageManager
- [FR] provide file to StorageManager event callbacks
- Wrong error message validation on "Email verification" when signin HOT 1
- Amplify Studio tutorial feedback HOT 2
- Make the loading screen or that rainbow color customizable HOT 2
- Cannot get accessToken within Authenticator element
- Showing Passoword in the place of Email HOT 8
- Auto close the "Verifying..." loader HOT 5
- useAuthenticator is making me unauthenticated. HOT 10
- Accessibility Bug: "X" button in search component is not accessible via keyboard
- Liveness showing not live on production HOT 1
- Accessibility bug - Input fields are not described by their error messages HOT 2
- Authenticator Override Function calls for handleResetPassword and handleConfirmResetPassword are missing HOT 2
- processFile in StorageManager causing endless uploads HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-ui.