Azure Face API v1.2 – Liveness Session Stuck in "Running" Even After Successful Video Upload (Tested PUT & POST Upload)

Niket Kumar Singh 600 Reputation points
2025-04-18T06:03:14.7833333+00:00

Hi Team,

We are evaluating Azure Face API v1.2 Liveness Detection (Passive Mode) for server-side implementation via REST APIs. However, we’re encountering consistent issues where the session remains stuck in the "Running" state, even after successful video upload.

Configuration Details:

  • API Version: v1.2
  • Mode: Passive / Passive-Active mode

Region: Tested with both East US and West US

Authentication: Using valid subscription key and authToken (used within 10-minute TTL)

Session Creation: Works fine — POST /detectLiveness-sessions returns sessionId + authToken

Video Upload Attempts:

We've tried both approaches, with consistent 200 OK responses:

PUT /detectLiveness-sessions/{sessionId}/video

POST /session/start?sessionId=...

After successful upload, we poll:
GET /detectLiveness-sessions/{sessionId}

But the response is always:
{

"sessionId": "...",

"authToken": "",

"status": "Running",

"results": {

"attempts": []

}

}

Actions Already Taken:

  • Re-encoded the video using recommended ffmpeg parameters:
    ffmpeg -i input.mp4 -c:v libx264 -b:v 1M -an -vf scale=640:480 -r 25 output_cleaned.mp4
    1. Confirmed:
      • Content-Type: application/octet-stream
      • Authorization: Bearer <authToken> (no subscription key here)
      • Session ID matches what was received during creation
      • Upload happens well within 10-minute authToken TTL
    2. Tested using both East US and West US resources
    Any backend logs visibility or audit API for debugging?
    1. Clarification if REST-only flow is unstable compared to SDK (we are not using iOS/Android/Web SDKs — only backend REST calls)
    2. Any known platform-side issue with certain formats/resolutions, even if re-encoded properly?
    3. Is there any additional processing step required after video upload that we're missing?
    We’re happy to test further or collaborate in real-time if needed. Any insights or guidance would be greatly appreciated.
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,425 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.