You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observed behaviour
The API returns an HTTP 200 with an empty response body.
Specifications:
OS: Windows 10 v1903, Firefox browser (also tested using python 2.7 script calling API from an Ubuntu 16.04.3 session with the same result)
Version: Dkron 2.0.3
The text was updated successfully, but these errors were encountered:
@knightsg I think the description is wrong, when there is a leader the leader data is returned, did you mean that there's a 200 code even when there is no leader elected?
It does return 200 even if there is no leader. I guess my confusion was because I was misunderstanding the designation of the server vs agent vs leader.
Additionally though, I currently am playing with a 2 node cluster (using docker) yet the leader endpoint is still returning a blank response. If I query the members endpoint I get the following:
Describe the bug
Calling /v1/leader when there is only one node results in a successful HTTP result with an empty response.
To Reproduce
Expected behavior
The API returns an HTTP 200 response with a response body that includes a json object with an 'Addr' attribute (the node's IP), eg:
{"Name":"1f6e0721a1dd","Addr":"172.18.0.3","Port":8946,"Tags":{"dc":"dc1","region":"global","role":"dkron","version":"2.0.3"},"Status":1,"ProtocolMin":1,"ProtocolMax":5,"ProtocolCur":2,"DelegateMin":2,"DelegateMax":5,"DelegateCur":4}
Observed behaviour
The API returns an HTTP 200 with an empty response body.
Specifications:
The text was updated successfully, but these errors were encountered: