Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

Consol Service Registration Fails With Post #56

Open
pm7y opened this issue Nov 12, 2017 · 7 comments
Open

Consol Service Registration Fails With Post #56

pm7y opened this issue Nov 12, 2017 · 7 comments

Comments

@pm7y
Copy link

pm7y commented Nov 12, 2017

Looks like consul now does not like POST requests to it's api and it seems PUT should now be used instead. Cluster.RegisterService now fails due to this as it's POSTing to the endpoint.

[ERR] http: Request POST /v1/agent/service/register, error: method POST not allowed

@thiagoloureiro
Copy link

thiagoloureiro commented Nov 17, 2017

Same here, I changed to PUT and it Worked.
Created a PullRequest to fix.

@thiagoloureiro
Copy link

Same Issue with DeregisterServiceAsync (was using GETAsync), Changed to PutAsync and worked

@robgeurden
Copy link

Same here, could you please merge the pullrequest?

@thiagoloureiro
Copy link

@robgeurden after several months and no answer I created another project to use with it, check my repo called Megaphone

@robgeurden
Copy link

@thiagoloureiro Thx will check it out!

@robgeurden
Copy link

@thiagoloureiro, just tried it, Only thing is I've got .net core web api projects. Perhaps a port to .net standard?

@thiagoloureiro
Copy link

@robgeurden I will create a new branch today to migrate to .net standard 2.0, let's see how it goes.

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

3 participants