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
{{ message }}
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Consul has now hit version 1.0.0, and as part of this release they have made the accepted HTTP verbs for various endpoints much stricter. This breaks (parts) of this library. The particular example I have found is that the agent.check.ttl_pass and agent.check.ttl_fail functions don't work as they use GET requests and those endpoints now only support PUT requests. I'm sure there will be more examples of breakages caused by this change.
Activity
torpedoallen commentedon Nov 20, 2017
The method
agent.service.deregisteralso requiresPUTverb :((wido commentedon Dec 8, 2017
I was just about to open a issue for this. Indeed, the ttl_pass function is failing me now
nh2 commentedon Feb 14, 2018
Yes,
/agent/check/pass/:check_idrequiresPUT, butttl_pass()sendsGET.nh2 commentedon Feb 14, 2018
I see that fixed in this PR, what's the status on that PR?
nh2 commentedon Feb 14, 2018
Here's a list of all endpoints and their verbs: https://github.com/hashicorp/consul/blame/93b422fcaefed7e32c577f9e18a193886476496f/CHANGELOG.md#L182-L227
cablehead commentedon May 17, 2018
#182 is finally merged. Please re-open if this is still an issue. Thanks @matusvalo!