configure Connbeat with an HTTPS URL without a port number (eg {{https://host/stsAgent/}})
start the agent
check the connbeat log for errors
What was the result
The log file contains the following:
{{2017-10-17T08:53:02Z WARN Fail to insert a single event: Post https://host:80/stsAgent/connbeat?api_key=xxx: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)}}
Notice port 80 is inserted into the URL.
What expected
Connbeat uses the URL as-is.
Workaround
If you change the URL to include an explicit port (eg {{https://host:443/stsAgent/}}) connbeat does not change the port number.
How to reproduce
What was the result
The log file contains the following:
{{2017-10-17T08:53:02Z WARN Fail to insert a single event: Post https://host:80/stsAgent/connbeat?api_key=xxx: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)}}
Notice port 80 is inserted into the URL.
What expected
Connbeat uses the URL as-is.
Workaround
If you change the URL to include an explicit port (eg {{https://host:443/stsAgent/}}) connbeat does not change the port number.