Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/v1/agent/check/deregister/<checkID> always returns 404 #95

Closed
gmr opened this issue Apr 30, 2014 · 3 comments
Closed

/v1/agent/check/deregister/<checkID> always returns 404 #95

gmr opened this issue Apr 30, 2014 · 3 comments

Comments

@gmr
Copy link
Contributor

gmr commented Apr 30, 2014

Given a response to /v1/agent/checks of:

{
    "abc123": {
        "Node": "s826.ofc.lair",
        "CheckID": "abc123",
        "Name": "gmrcheck",
        "ServiceName": "",
        "Notes": "/bin/sh: /bin/true: No such file or directory\\n",
        "Status": "critical",
        "ServiceID": ""
    }
}

I will always receive a 404 to /v1/agent/check/deregister/ where is set to abc123:

gmr$ curl --verbose http://localhost:8500/v1/agent/check/deregister/abc123

> GET /v1/agent/check/deregister/abc123 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8500
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Wed, 30 Apr 2014 18:57:22 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8

gmr$ curl --verbose -X PUT  http://localhost:8500/v1/agent/check/deregister/abc123

> PUT /v1/agent/check/deregister/abc123 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8500
> Accept: */*

< HTTP/1.1 404 Not Found
< Date: Wed, 30 Apr 2014 18:57:31 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8

gmr$ curl --verbose -X DELETE  http://localhost:8500/v1/agent/check/deregister/abc123

> DELETE /v1/agent/check/deregister/abc123 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8500
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Wed, 30 Apr 2014 18:57:36 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
@armon
Copy link
Member

armon commented Apr 30, 2014

@gmr Thanks for the report. This is a 0.1, and is fixed in master. Fix will be in 0.2 going out tomorrow.

@gmr
Copy link
Contributor Author

gmr commented Apr 30, 2014

No problem, am writing an API wrapper and ran across it in acceptance testing.

@armon
Copy link
Member

armon commented May 1, 2014

Fixed in master.

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

No branches or pull requests

2 participants