-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown errors #3546
Comments
@alekkova Thanks for submitting the issue. We'll investigate and provide updates here. |
@alekkova The code currently supports all possible exception from |
@phantumcode thank you for looking into it. We have stumbled on a case where Lines 150 to 152 in 358699c
This leads to a very unclear "unknown error" on client side, which gives no information about the issue at all. I am worried if there are also other exception types that lead to an unknown error on client side. |
@alekkova This is a bug with the service not properly catching the |
Thanks @phantumcode. It would also be appreciated if we received more descriptive errors on client side. For example |
@alekkova Thanks you for your feedback. Can you submit a feature request to improve the Liveness client side error messages in the Liveness repo https://github.com/aws-amplify/amplify-ui-swift-liveness |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Is your feature request related to a problem? Please describe.
LivenessEventKind.Exception
has some predefined exceptions:amplify-swift/AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/Events/LivenessEvent.swift
Lines 41 to 55 in 358699c
Predefined exceptions are translated to a corresponding
FaceLivenessSessionError
. But all other exceptions are translated toFaceLivenessSessionError.unknown
.amplify-swift/AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/SPI/AWSPredictionsPlugin+Liveness.swift
Lines 71 to 92 in 358699c
When other exceptions happen it is impossible to understand the reason for an error.
User was receiving a
FaceLiveness.FaceLivenessDetectionError(code: 0, message: "An unknown error occurred.", recoverySuggestion: "Please open an issue....")
and it took way too much effort to prepare and distribute a special build for the user using a modified Amplify package where aInvalidSignatureException
exception header value could finally be observed which hinted about the underlying issue.amplify-swift/AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/Service/FaceLivenessSession.swift
Lines 150 to 152 in 358699c
Describe the solution you'd like
Provide better error descriptions and avoid using unknown errors. Providing at least exception header value would already help in understanding the underlying error.
Describe alternatives you've considered
There are no alternatives.
Is the feature request related to any of the existing Amplify categories?
Predictions
Additional context
No response
The text was updated successfully, but these errors were encountered: