When does this error "Publish of Process project to Orchestrator failed. An error occurred while sending the request" happen and how can it be resolved?
Issue Description:
Users may encounter an "Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request," when attempting to publish a workflow from Studio to Orchestrator.
Error Message:
Upon encountering this issue, the subsequent error message will be documented in the Studio logs (which can be found here: %localappdata%\uipath\logs). The error message highlights a problem with parsing value during the Json reading process.
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.
Root Cause:
This problem generally arises if Studio is connected to the Orchestrator, but a lapse or disconnection in the internet service occurs. As a result, while trying to publish a project, users are presented with the error: "Error: Publish of Process project to Orchestrator failed. An error occurred while sending the request."
Resolution:
- Disconnect and then reconnect the Robot to Orchestrator.
In most cases, this should resolve the issue by re-establishing the connection. Always ensure that the internet connection is stable before attempting to publish a project to Orchestrator.