{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/8844","labels_url":"https://api.github.com/repos/docker/docker/issues/8844/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/8844/comments","events_url":"https://api.github.com/repos/docker/docker/issues/8844/events","html_url":"https://github.com/docker/docker/issues/8844","id":47160408,"number":8844,"title":"remote API to pull inconsistent","user":{"login":"xavs","id":1651307,"avatar_url":"https://avatars.githubusercontent.com/u/1651307?v=3","gravatar_id":"","url":"https://api.github.com/users/xavs","html_url":"https://github.com/xavs","followers_url":"https://api.github.com/users/xavs/followers","following_url":"https://api.github.com/users/xavs/following{/other_user}","gists_url":"https://api.github.com/users/xavs/gists{/gist_id}","starred_url":"https://api.github.com/users/xavs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavs/subscriptions","organizations_url":"https://api.github.com/users/xavs/orgs","repos_url":"https://api.github.com/users/xavs/repos","events_url":"https://api.github.com/users/xavs/events{/privacy}","received_events_url":"https://api.github.com/users/xavs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//core/api","name":"/core/api","color":"e11d21"},{"url":"https://api.github.com/repos/docker/docker/labels//project/doc","name":"/project/doc","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-29T15:15:24Z","updated_at":"2015-02-28T01:32:42Z","closed_at":"2015-02-28T01:32:41Z","body":"The API to pull an image is a bit inconsistent.\r\nIE POST /images/create?fromImage=xxx.xx/asd/qwe\r\nWhen the pull fails it still returns http status 200, and the response body seems like some sort of pseudo-json like\r\n{\"status\":\"Pulling repository aaa.com/ns/name\"}\r\n{\"errorDetail\":{\"message\":\"Error: image ns/name not found\"},\"error\":\"Error: image ns/name not found\"}\r\n\r\nwhere it should probably be like \r\n{\"status\":\"Pulling repository aaa.com/ns/name\",\r\n\"errorDetail\":{\"message\":\"Error: image ns/name not found\"},\"error\":\"Error: image ns/name not found\"}\r\n\r\nand the response status probalby a 422\r\n\r\n\"The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.\""},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76502602","html_url":"https://github.com/docker/docker/issues/8844#issuecomment-76502602","issue_url":"https://api.github.com/repos/docker/docker/issues/8844","id":76502602,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T01:32:41Z","updated_at":"2015-02-28T01:32:41Z","body":"dup of https://github.com/docker/docker/issues/5722"}}