Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

deregister returns OK but service not deregistred #103

Open
HansHammel opened this issue Nov 18, 2017 · 2 comments
Open

deregister returns OK but service not deregistred #103

HansHammel opened this issue Nov 18, 2017 · 2 comments

Comments

@HansHammel
Copy link

HansHammel commented Nov 18, 2017

it seems that consul wants a node specified

this works:

curl -XPUT http://localhost:8500/v1/catalog/deregister -d '{ "Node":"dc1", "Name": "IS4ProtectedAPI v1.0.0.0"}'
this doesn't:

curl -XPUT http://localhost:8500/v1/catalog/deregister -d '{ "Name": "IS4ProtectedAPI v1.0.0.0"}'

so your deregiester method Needs aditional Parameters

One more bug:: IS4ProtectedAPI v1.0.0.0 is the NAME (not the ID) of the Service

I notice you are not the maintainer of the nuget package I used, are you?

@wayne-o
Copy link

wayne-o commented Jun 7, 2018

I am also seeing this

Although I am confused as the docs do not mention Node https://www.consul.io/api/agent/service.html#deregister-service

@wayne-o
Copy link

wayne-o commented Jun 7, 2018

My mistake - it doesn't dereg during a debug session but runing in terminal works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants