Microphone icon indicating copy to clipboard operation
Microphone copied to clipboard

Consol Service Registration Fails With Post

Open pm7y opened this issue 7 years ago • 7 comments

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

pm7y avatar Nov 12 '17 04:11 pm7y

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

thiagoloureiro avatar Nov 17 '17 23:11 thiagoloureiro

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

thiagoloureiro avatar Nov 18 '17 00:11 thiagoloureiro

Same here, could you please merge the pullrequest?

robgeurden avatar Mar 30 '18 19:03 robgeurden

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

thiagoloureiro avatar Mar 31 '18 09:03 thiagoloureiro

@thiagoloureiro Thx will check it out!

robgeurden avatar Mar 31 '18 13:03 robgeurden

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

robgeurden avatar Mar 31 '18 13:03 robgeurden

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

thiagoloureiro avatar Mar 31 '18 16:03 thiagoloureiro