[BUG] Face liveness results not accessible after completing verification #47709
Labels
Client
This issue points to a problem in the data-plane of the library.
Cognitive - Face
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.AI.Vision.Face 1.0.0-beta.2
Describe the bug
I'm using the Azure.AI.Vision.Face library to create Liveness with Verification Sessions, and everything works fine initially. But when I try to fetch the results for a completed liveness session, I'm getting the following exception:
The requested operation requires an element of type 'String', but the target element has type 'Number'.
This issue occurs only after performing the liveness and verification operation on the mobile SDK. For newly created sessions where results are not yet available, I can retrieve the results without any problems.
It seems that when results are available, additional data or formatting is coming from Azure that is not being handled correctly by the SDK.
Expected behavior
When fetching the results for a completed liveness session using the Azure.AI.Vision.Face library, the library should return the session's results in the expected format without throwing any exceptions.
Actual behavior
When I try to fetch the results for a completed liveness session, I'm getting the following error message from the SDK:
The requested operation requires an element of type 'String', but the target element has type 'Number'.
Please note that this issue occurs only after performing the liveness and verification operation on the mobile SDK. For newly created sessions where results are not yet available, I can retrieve the results without any problems.
Reproduction Steps
The following code creates a new Liveness with Verification session, this works without any issues:
The following code retrieves the results for the given
sessionId
, this only works for newly created sessions:Environment
Dotnet Info (running from Docker container)
The text was updated successfully, but these errors were encountered: