Error: 'The remote server returned an error: (401) Unauthorized' error is seen while running an automation job

Error: 'The remote server returned an error: (401) Unauthorized' error is seen while running an automation job

book

Article ID: KB0077128

calendar_today

Updated On:

Products Versions
Spotfire Automation Services 7.5 and higher

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.

User-added image

Issue/Introduction

Error: The remote server returned an error: (401) Unauthorized, while running an automation job.

Additional Information

Doc: Installing the Client Job Sender Doc: Running the Client Job Sender