Azure Face API v1.2 – Liveness Session Upload Working via /session/start but Status Stuck at "Running"

Niket Kumar Singh 600 Reputation points
2025-04-16T12:44:41.2966667+00:00

we are currently working on implementing and validating the Azure Face API – Liveness Detection feature in Passive mode to help identify spoofing attempts and verify real user presence and we’re encountering inconsistent behavior while working with the liveness session workflow.

Configuration Details:

  • API Version: v1.2
  • Region: East US
  • Mode: Passive
  • Authentication: Valid subscription key and authToken returned during session creation
  • Upload Method: Using both:
    • PUT /detectLiveness-sessions/{sessionId}/video — intermittent success
    • POST /session/start?sessionId=... — consistently returns 200 OK
  1. Session creation (POST /detectLiveness-sessions) succeeds and returns sessionId and authToken.
  2. Video upload using POST /session/start?sessionId=... returns 200 OK.
       Content-Type: application/octet-stream
       Authorization: Bearer <authToken>
       
       
    
    After successful upload, polling :
       GET /detectLiveness-sessions/{sessionId}
    
    returns:
       {
       "status": "Running"
       }
       
    
    1. In some sessions, even with correct video upload, status never transitions to "Succeeded" or "Failed".
    What are the possible reasons a session remains in "Running" state indefinitely after successful video upload? Are there video format or codec requirements beyond .webm / VP8 that might cause backend processing to fail silently? Is there a way to debug or view audit logs for a session? (e.g., via /auditEntries endpoint?) Are there any backend limitations when using the manual REST API workflow (Postman) instead of the official client SDKs (iOS/Android/Web)? Would switching to PassiveActive mode help with stability in browser/server-side implementations?
  • We are not using the frontend SDK for liveness (no Android/iOS/Web SDKs), only backend REST APIs.
  • Session auth token is correctly passed within 10 minutes (within validity).
  • Tried both PUT /video and POST /session/start for upload.

We’ve already reviewed and followed the official documentation and REST API reference, but the issue persists.

Looking forward to your guidance and suggestions.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,448 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.