Microphone
Microphone copied to clipboard
Consol Service Registration Fails With Post
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
Same here, I changed to PUT and it Worked. Created a PullRequest to fix.
Same Issue with DeregisterServiceAsync (was using GETAsync), Changed to PutAsync and worked
Same here, could you please merge the pullrequest?
@robgeurden after several months and no answer I created another project to use with it, check my repo called Megaphone
@thiagoloureiro Thx will check it out!
@thiagoloureiro, just tried it, Only thing is I've got .net core web api projects. Perhaps a port to .net standard?
@robgeurden I will create a new branch today to migrate to .net standard 2.0, let's see how it goes.