My diagnosis is the Octopus Server is returning malformed json on the polling registration API
Details
Version v2019.4.4
Followed Directions on https://octopus.com/docs/infrastructure/deployment-targets/windows-targets/polling-tentacles-web-sockets
Confirmed: Test Page received
Octopus Server configured successfully
If you can view this page, your Octopus Server is configured and ready to accept requests from Polling Tentacles.
This landing page is displayed when no X509 certificate is provided. Only Octopus Tentacles with a trusted certificate can connect to this Octopus Server.
Used a API key to register the windows polling target.
When Installing tentical get the following message
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
Octopus.Client.Exceptions.OctopusDeserializationException: Unable to process response from server: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.. Response content:
<!doctype html>
<html>
<head>
<meta charset='utf8'>
<meta http-equiv='x-ua-compatible' content='ie=edge'>
<title>Octopus Server</title>
<style type='text/css'>
body {
font-family: 'Segoe UI', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 10pt;
}
h1 {
font-size: 15pt;
font-weight: 400;
margin-top: 7pt;
margin-bottom: 7pt;
}
</style>
</head>
<body>
<h1>Octopus Server configured successfully</h1>
<p>If you can view this page, your Octopus Server is configured and ready to accept requests from Polling Tentacles.</p>
<p>This landing page is displayed when no X509 certificate is provided. Only Octopus Tentacles with a trusted certificate can connect to this Octopus Server.</p>
</body>
</html>
---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, 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 Octopus.Client.OctopusAsyncClient.<ReadResponse>d__58`1.MoveNext()
--- End of inner exception stack trace ---
at Octopus.Client.OctopusAsyncClient.<ReadResponse>d__58`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncClient.<DispatchRequest>d__56`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncClient.<Get>d__35`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncRepository.<LoadRootDocumentInner>d__165.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncClient.<Create>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncClient.<Create>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Manager.Tentacle.TentacleConfiguration.SetupWizard.TentacleSetupWizardModel.<VerifyCredentials>d__198.MoveNext() in C:\buildAgent\work\e5cfddd118f4e691\source\Octopus.Manager.Tentacle\TentacleConfiguration\SetupWizard\TentacleSetupWizardModel.cs:line 563