consul-alerts icon indicating copy to clipboard operation
consul-alerts copied to clipboard

Can't connect to https consul endpoint

Open dibyajyotiron opened this issue 4 years ago • 0 comments

Consul version:

  • v1.7.1

Consul-alerts version:

  • Consul Alerts 0.5.0

What's happening:

  • When I make a request to https consul server it just simply appends http:// before https://, in the logs I can see this INFO[0000] Waiting for consul: Get http://https:%2F%2Fx.x.x.x:8501/v1/status/leader?dc=x_x&token=x-x-x-x: invalid URL port "//x.x.x.x:8501"
  • Since http is disabled on consul, if I query to http api, I get this response : INFO[0000] Waiting for consul: Unexpected response code: 400 (Client sent an HTTP request to an HTTPS server.)

Desired behavior:

  • It should be able to query https api endpoint and monitor changes.

dibyajyotiron avatar Apr 05 '20 16:04 dibyajyotiron