Exception

Hi Team,

I am getting below error while calling websocket

Endpoint: 186.79.143/API/REST/v1/WebRTC/Session

“VMO60164: The user is not authorized for login.System.ServiceModel.FaultException\u00601[System.ServiceModel.ExceptionDetail]: VMO60164: The user is not authorized for login. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value i[s:\nVideoOS.Common.Integration.ServerServiceException](file:s:/nVideoOS.Common.Integration.ServerServiceException): VMO60164: The user is not authorized for login. ----\u003E VideoOS.Management.Server.UserNotAuthorizedForLogOnException: VMO60164: The user is not authorized for login.\n at VideoOS.Management.Server.DualAuthorizationHandling.CheckDualAuthorization(IGeminiRequestContext context, String authorizationId, AuthorizationActionType action)\r\n at VideoOS.Management.Server.ServerCommandService.Login(Guid instanceId, String currentToken)\n — End of inner ExceptionDetail stack trace —\n).”

Hi @Devendra Lohar​ ,

Did you obtain a Bearer token before making an API call?

To make API calls, you must first obtain a Bearer token. For guidance, please refer to https://doc.developer.milestonesys.com/mipvmsapi/api/config-rest/v1/#section/Introduction/Get-started:~:text=Verify%20that%20you%20can%20authenticate,character%20%5C%20with%20%5E.

Hi

I got the token successfully from API/IDP/connect/token API after that we are calling /API/REST/v1/WebRTC/Session an here we are getting exception.

I am using milestone web socket for live video streaming.

mipsdk-samples-protocol-main/mipsdk-samples-protocol-main/WebRTC_JavaScript/index.html

Hi @Devendra Lohar​ ,

I haven’t tested this myself, but I’ll add the sample to see if it works on my side.

This seems like a permission issue.

Could you verify that a user with admin permission can see the stream, just to rule this out?

If the user have read and view live permissions for the camera, the feed should start. Can you check that the user have these permissions?