Support > Forums > OpenBots Server > GetCredential with status BadRequest - Error while executing a Job

GetCredential with status BadRequest - Error while executing a Job

Satish Banavara

  • Reporter
  • Calender Icon August 08,2021 at 5:55 PM

Hi, I am trying to run a job manually, I am getting the following error

Log Message: Error occurred while executing the job; ErrorMessage = System.InvalidOperationException: Exception when calling CredentialsApi.GetCredentials: Error calling GetCredential with status BadRequest: One or more validation errors occurred. at OpenBots.Server.SDK.HelperMethods.CredentialMethods.GetCredentials(UserInfo userInfo, String credentialId, Int32 count) at OpenBots.Service.Client.Manager.Execution.ExecutionManager.ExecuteJob() at OpenBots.Service.Client.Manager.Execution.ExecutionManager.NewJobsCheckTimer_Elapsed(Object sender, ElapsedEventArgs e) 2

The sever is running on https with Self-signed certificate. Also the Agent is connect to the server. Kindly let me know I am doing anything wrong. Thanks

This forum has 36 topics, 136 replies, and was last updated 29 days ago by Rajeena Mashnampat

Nataly Alvarado

  • Participant
  • Calender Icon August 10,2021 at 5:21 AM

Hello Satish,

As you mentioned, Server v1.5.0 and higher require a secure connection to access credentials.

Please, make sure the agent is connected to the https binded URL site. To avoid confusion, delete the localhost bind to OpenBots server from the IIS manager. Also, the active directory credentials should reference the username used to login to the Agent hosted machine.

You are not authorized to reply, please click here to login and add your reply to this topic.