Azure Face API v1.2 – Liveness Session Upload Working via /session/start but Status Stuck at "Running"
Niket Kumar Singh
600
Reputation points
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
-
- Session creation (
POST /detectLiveness-sessions
) succeeds and returnssessionId
andauthToken
. - Video upload using
POST /session/start?sessionId=...
returns200 OK
.
After successful upload, polling :Content-Type: application/octet-stream Authorization: Bearer <authToken>
returns:GET /detectLiveness-sessions/{sessionId}
{ "status": "Running" }
- In some sessions, even with correct video upload, status never transitions to
"Succeeded"
or"Failed"
.
"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 toPassiveActive
mode help with stability in browser/server-side implementations? - In some sessions, even with correct video upload, status never transitions to
- 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
andPOST /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
Sign in to answer