book
Article ID: KB0077128
calendar_today
Updated On:
Description
While running an TIBCO Spotfire Automation service job from the command line(Automation ClientJobSender) or Windows task Scheduler, the following error can be seen in the 'Spotfire.Dxp.Automation.ClientJobSender.exe.log'.
System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Spotfire.Dxp.Worker.ServiceContracts.Automation.ExecutionStatus.Create(WebRequest request) at Spotfire.Dxp.Automation.ClientJobSender.ServerConnectionManager.ExecuteWithOAuth2Retry(Func`1 executer, Boolean isRetry) at Spotfire.Dxp.Automation.ClientJobSender.JobExecutionHandler.ExecuteServiceCall(ServerConnectionManager connectionManager, Func`1 executer) at Spotfire.Dxp.Automation.ClientJobSender.JobExecutionHandler.Run(CommandLineManager cmd)
Resolution
Make sure that the user account mentioned in the "Spotfire.Dxp.Automation.ClientJobSender.exe.config" file, which is used to run the automation job is able to log in to Spotfire.
Issue/Introduction
Error: The remote server returned an error: (401) Unauthorized, while running an automation job.