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

React Face Liveness component in iOS 15.x all browser occurred websocket errror, component version 2.0.11

Open yoruponder opened this issue 2 years ago β€’ 3 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?

Create React App

What browsers are you seeing the problem on?

Chrome, Safari

Which region are you seeing the problem in?

ap-northeast-1

Please describe your bug.

user can not connect aws websocket, and throw this error, via sentry we collection this information image

in user side they show this dialog image

here is sentry tag image

User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1

image

What's the expected behaviour?

iOS user can use liveness service normally

Help us reproduce the bug!

when use the iOS 15.x device run liveness component in browser may reproduce the error

Code Snippet


<FaceLivenessDetector
          sessionId={createLivenessApiData ? createLivenessApiData.sessionId : ''}
          region="ap-northeast-1"
          onAnalysisComplete={handleAnalysisComplete}
          disableInstructionScreen={disableInit}
          onUserCancel={() => {
            setLoading(true);
            userCancel();
          }}
          onError={(error) => {
            // -------------------- I send component error to sentry write here --------------------
            console.log('<FaceLivenessDetector>', error)

            if(uid){
              Sentry.setTag("uid", uid);
            }
            
            Sentry.setTag("component", "FaceLivenessDetector");
            let sentry_context = {
              uid,
              type: 'component',
              client,
              access_token,
            }
            if(createLivenessApiData){
              sentry_context.session_id = createLivenessApiData ? createLivenessApiData.sessionId : '';
            }
            Sentry.setContext("Custom-error", sentry_context);
            Sentry.captureException(error);
            Sentry.captureMessage(`<FaceLivenessDetector>-${error.state}`);
          }}
       .....
     />

Additional information and screenshots

user devices image

yoruponder avatar Dec 08 '23 07:12 yoruponder

Hi @yoruponder, are you also seeing this error with the latest version of @aws-amplify/ui-react-liveness?

esauerbo avatar Feb 08 '24 14:02 esauerbo

Hi @esauerbo , I found v3 version react-liveness UI had change, maybe some unknow api also been change, I couldn't update react-liveness to v3 by myself, need to contact and confirm with other team member, it's not easy things 😞, Is it v2 version fix this problem?

yoruponder avatar Feb 20 '24 10:02 yoruponder

v3 react-liveness components prop did not have customization Instructions, react-liveness docs also change, and could not find v2 docs, our product need this api to tell user be ready for face checkπŸ˜…πŸ˜…

yoruponder avatar Feb 20 '24 10:02 yoruponder

Hi @yoruponder, thanks for your patience. So we can try to reproduce your error, which exact version of @aws-amplify/ui-react-liveness are you currently using?

Our migration guide has more information on upgrading to the latest version, and if you encounter any issues we're happy to help.

esauerbo avatar Feb 27 '24 17:02 esauerbo

Hi @esauerbo, thank you for response. I saw sentry it still occur this error, our @aws-amplify/ui-react-liveness version is 2.0.11

image

Their devices totally are iPhone, and error from 861184 change to 1721344

image

Our team has no plan to Upgrading @aws-amplify/ui-react-liveness in the near future πŸ˜‚

yoruponder avatar Mar 05 '24 03:03 yoruponder

react-liveness
β”œβ”€β”€ @aws-amplify/[email protected] -----------------> 2.0.11
β”œβ”€β”€ @babel/[email protected]
β”œβ”€β”€ @sentry/[email protected]
β”œβ”€β”€ @testing-library/[email protected]
β”œβ”€β”€ @testing-library/[email protected]
β”œβ”€β”€ @testing-library/[email protected]
β”œβ”€β”€ [email protected] -------------------> 5.3.7
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”€ [email protected]
└── [email protected]

yoruponder avatar Mar 05 '24 03:03 yoruponder

Hi @yoruponder, There was a change made on the service side that should have resolved this issue. Can you please let us know if you are still seeing this issue?

reesscot avatar Mar 22 '24 21:03 reesscot

Hi @reesscot , In sentry console, It seen like never occur this error again. Thank you!!

yoruponder avatar Apr 03 '24 02:04 yoruponder

@yoruponder So glad to hear that, and thank you for letting us know! I'll close this out now.

reesscot avatar Apr 03 '24 18:04 reesscot