Error Message "Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request." Thrown when publishing a workflow from Studio to Orchestrator

Error fix for "Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request" thrown when publishing a workflow from Studio to Orchestrator.

Error Message: “Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request.” appears when publishing a workflow from Studio to Orchestrator,

ErrorMessagePublishProject.png

And the following error message is logged in Studio logs:
09:26:05.8403 => [ERROR] [UiPath.Studio.exe] [28] Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at UiPath.Studio.OnlineServices.Services.ConnectionSettingsService.d__20.MoveNext(), HResult -2146233088
09:26:06.9059 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [23] Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request.
09:26:06.9059 => [ERROR] [UiPath.Studio.exe] [23] Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request.



Resolution:
  • Disconnect and reconnect the Robot to Orchestrator .