amplify-ui: Liveness: Stream idle timeoutExceeded
Before creating a new issue, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have tried disabling all browser extensions or using a different browser
- I have tried deleting the node_modules folder and reinstalling my dependencies
- I have read the guide for submitting bug reports.
On which framework/platform are you having an issue?
React
Which UI component?
Liveness
How is your app built?
Next.js 15.1.7
What browsers are you seeing the problem on?
Safari
Which region are you seeing the problem in?
us-east-1
Please describe your bug.
When liveness starts, the error “Stream idle timeoutExceeded” is thrown. It occurs on some IOs devices, on others it always works, for no apparent reason.
What’s the expected behaviour?
Should work on all devices.
Help us reproduce the bug!
There is no step by step, it simply occurs on certain IOs devices, it occurred on the iphone 15.
Code Snippet
const credentialProvider: AwsCredentialProvider = async () => {
return {
accessKeyId: process.env.NEXT_PUBLIC_ACCESS_KEY_ID || "",
secretAccessKey: process.env.NEXT_PUBLIC_SECRET_ACCESS_KEY || ""
}
};
<FaceLivenessDetectorCore
sessionId={sessionId as string}
region={region}
onAnalysisComplete={handleAnalysisComplete}
onError={(error) => handleAnalysisError({
state: error.state,
error: error.error?.message,
name: error.error?.name,
cause: error.error?.cause,
stack: error.error?.stack,
})}
config={{credentialProvider}}
onUserCancel={refresh}
disableStartScreen={true}
displayText={{...defaultLivenessDisplayText}}
/>
Console log output
{ “state”: “SERVER_ERROR”, “error”: “Stream idle timeoutExceeded”, “name”: “ValidationException”, “stack”: “xh@https://biometria.me/_next/static/chunks/755-7055497759b63e19.js:35:56411\n” + “xP@https://biometria.me/_next/static/chunks/755-7055497759b63e19.js:35:60027\n” + “xW@https://biometria.me/_next/static/chunks/755-7055497759b63e19.js:35:61843\n” + “@https://biometria.me/_next/static/chunks/755-7055497759b63e19.js:35:66228\n” + “x8@https://biometria.me/_next/static/chunks/755-7055497759b63e19.js:35:66261” }
Additional information and screenshots
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (9 by maintainers)
Hi, we will looking into the cause of instability on iOS 18.4, no more update at this moment. We will follow up here when we have more information.
Hi @viniciusschneider, no update yet, however we are prioritizing this investigation with the release of iOS 18.4. We will follow up here when we have more information to share. Thank you.