Hi All,
Im try to configure the heartbeat to monitor the up time for endpoint. Below is the configuration for the same.
- type: http
name: JocataHealthCheck
schedule: '@every 60s'
urls: ["https://SomeURL/rest/jocata/v1.0/healthCheck"]
timeout: 60s
proxy_url: 'http://<<IP>>:<<PORT>>'
check.request:
method: GET
headers:
content-type : 'application/json'
Authorization : 'Basic MTNlMzkxNzY6am9jYXRhdWF0'
check.response:
status: 200
Upon starting heartbeat I'm getting the following error for the endpoint.
Get https://SomeURL/rest/jocata/v1.0/healthCheck: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I'm able to access the using the below curl request
curl -kv https://SomeURL/rest/jocata/v1.0/healthCheck --proxy <<IP>>:<<PORT>> --header 'Authorization: Basic MTNlMzkxNzY6am9jYXRhdWF0'
Can anyone please point if something is missing while configuring the same.
Thanks and Regards,
Rakesh Chhabria