amplify-ui icon indicating copy to clipboard operation
amplify-ui copied to clipboard

Getting `Client failed to start recording` error message for few users

Open bard-fauz opened this issue 5 months ago • 6 comments

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

React

Which UI component?

Liveness

How is your app built?

Webpack 5

What browsers are you seeing the problem on?

No response

Which region are you seeing the problem in?

No response

Please describe your bug.

Getting RUNTIME_ERROR for some users with the message that Client failed to start recording. This happens when the liveness session is created and passed to the Amplify Liveness FaceLivenessDetectorCore Component.

Below is the log message for the error that we receive and format from Amplify Liveness component. "state: RUNTIME_ERROR, name: undefined , :message: Client failed to start recording."

What's the expected behaviour?

Expected behaviour is that the liveness check is initiated properly with the recording being started.

Help us reproduce the bug!

This issue is happening in certain scenarios with only a select few customers. As I don't have their device info and other experience details, I cannot provide the reproduction steps. From our logs, it seems like they fetched the session details and passed it successfully to Amplify Liveness component.

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

No response

bard-fauz avatar Jun 07 '25 16:06 bard-fauz

Hi @bard-fauz thank you for opening this issue. Can you confirm that the users that are facing this issue have enabled permissions to access the camera?

nadetastic avatar Jun 09 '25 16:06 nadetastic

Yes, until a user has allowed the camera access permission, the session is not created and control is not passed to the Amplify component in our product.

bard-fauz avatar Jun 10 '25 16:06 bard-fauz

Hello @bard-fauz , we're not able to reproduce this issue on our side. The recording was started and verified successfully. Could you provide more information to reproduce this issue when you have them? We can then continue the investigation.

Simone319 avatar Jun 11 '25 15:06 Simone319

Even I am not able to replicate this issue on my end, our logs mentioned that 2 users encountered this issue, thus wanted to ask why this could be the case. Any idea why this error message could come up?

bard-fauz avatar Jun 13 '25 14:06 bard-fauz

@bard-fauz Client failed to start recording error message will be displayed if the recording failed to start or exceeded the timeout of 5 seconds. And the recording failure/timeout could be due to various reasons.

Is it a consistent issue for the same user, or the log indicates there's successful recording for the user after retries?

Simone319 avatar Jun 18 '25 15:06 Simone319

@Simone319 , It happened only for two users and for them it kept on repeating always. They retried multiple times and our logs showed that for each try they got the above error message. Apart from these two I have not observed any other user face this issue.

bard-fauz avatar Jun 18 '25 17:06 bard-fauz

@bard-fauz Please let us know if this error happens again. We are happy to try reproducing this error, if you provide more information on how to reproduce it.

adrianjoshua-strutt avatar Jun 26 '25 15:06 adrianjoshua-strutt

Hey @bard-fauz, we're closing the issue because of inactivity. Feel free to reopen it and provide more information if you need further help from us.

sarayev avatar Jul 08 '25 14:07 sarayev