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

Heatlh api call return 0 as status code #141

Closed
jgsqware opened this issue Apr 19, 2016 · 2 comments
Closed

Heatlh api call return 0 as status code #141

jgsqware opened this issue Apr 19, 2016 · 2 comments
Labels
kind/bug things are not as they seem kind/regression it didn't use to be like this

Comments

@jgsqware
Copy link
Contributor

Strange behavior,

when I curl /health, I received a Status Code 0.

curl -Lv http://localhost:6061/health
* Hostname was NOT found in DNS cache
*   Trying ::1...
* Connected to localhost (::1) port 6061 (#0)
> GET /health HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:6061
> Accept: */*
> 
< HTTP/1.1 0 status code 0
< Date: Mon, 18 Apr 2016 16:26:23 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host localhost left intact

Work well in 1.1.0-RC1

@jgsqware
Copy link
Contributor Author

In the logs, I get: api: 192.168.99.1:32569 'GET /health' 200

@Quentin-M Quentin-M added kind/bug things are not as they seem kind/regression it didn't use to be like this component/api labels Apr 19, 2016
@Quentin-M
Copy link
Contributor

https://github.com/coreos/clair/blob/83b19b6/api/router.go#L65 appears to be incomplete, it never writes the status code in the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug things are not as they seem kind/regression it didn't use to be like this
Development

No branches or pull requests

2 participants