Invoking Robot thru RobotJS is not working as giving errors as below; And it works fine if systems has UiPath Studio. It seems some dependencies missing running in client machines.
Errors are below;
11:16:53.3174 => [ERROR] [UiPath.BrowserInvocation.RobotAPI.Listener.RequestHandlers.RobotProcesses] [6] Method:Handle - Message:Object reference not set to an instance of an object. - StackTrace: at UiPath.BrowserInvocation.Shared.Utilities.UiPathStudioUtility.GetServicePath()
at UiPath.BrowserInvocation.Shared.Utilities.UiPathStudioUtility.EnsureService()
at UiPath.BrowserInvocation.RobotAPI.Listener.Impl.RobotProcess.GetProcesses(GetProcessesParameters parameters)
at UiPath.BrowserInvocation.RobotAPI.Listener.RequestHandlers.RobotProcesses.Handle(IHttpListenerContext context) Object reference not set to an instance of an object.
@erghe , We are invoking Robot through RobotJS and it is working fine in my machine. Since I have UiPath Studio. Once we install Robot in client machine (machine has no UiPath Studio), when I try to invoke Robot it is giving 500 internal server error as below;
11:16:53.3174 => [ERROR] [UiPath.BrowserInvocation.RobotAPI.Listener.RequestHandlers.RobotProcesses] [6] Method:Handle - Message:Object reference not set to an instance of an object. - StackTrace: at UiPath.BrowserInvocation.Shared.Utilities.UiPathStudioUtility.GetServicePath()
at UiPath.BrowserInvocation.Shared.Utilities.UiPathStudioUtility.EnsureService()
at UiPath.BrowserInvocation.RobotAPI.Listener.Impl.RobotProcess.GetProcesses(GetProcessesParameters parameters)
at UiPath.BrowserInvocation.RobotAPI.Listener.RequestHandlers.RobotProcesses.Handle(IHttpListenerContext context) Object reference not set to an instance of an object.
But in client machine we can invoke Robot manually and it is fine. Only we invoke thru RobotJS it fails to get list of robots call.