Can't terminate streams using name

wyvasi

Member
Hello!
When I do HTTP POST REQUEST to /rest-api/stream/terminate
with
Code:
{
name: 'name',
published: true
}
I get this response:

Code:
{
    "exception": "com.flashphoner.rest.server.exception.IllegalArgumentsException",
    "reason": "com.flashphoner.rest.server.exception.IllegalArgumentsException, Bad Request, mediaSessionId can't be null,  ts: 1661784592042, path: /rest-api/stream/terminate",
    "path": "/rest-api/stream/terminate",
    "error": "Bad Request",
    "message": "mediaSessionId can't be null",
    "timestamp": 1661784592042,
    "status": 400
}
This was working before.
 

Max

Administrator
Staff member
Hello,

Ticket WCS-3582 has been submitted for the issue, we'll notify in this thread about an update.
Use mediaSessionId as workaround:
Code:
/rest-api/stream/terminate 
{
 mediaSessionId: "stream-mediaSessionId-to-terminate"
}
You can get mediaSessionId using /stream/find query
Code:
/rest-api/stream/find 
{
 name: 'name',
 published: true
}
 
Last edited:
Top