{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17169","labels_url":"https://api.github.com/repos/docker/docker/issues/17169/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17169/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17169/events","html_url":"https://github.com/docker/docker/issues/17169","id":112107650,"number":17169,"title":"Docker shouldn't try v1 after v2 response 401","user":{"login":"farmerworking","id":13062012,"avatar_url":"https://avatars.githubusercontent.com/u/13062012?v=3","gravatar_id":"","url":"https://api.github.com/users/farmerworking","html_url":"https://github.com/farmerworking","followers_url":"https://api.github.com/users/farmerworking/followers","following_url":"https://api.github.com/users/farmerworking/following{/other_user}","gists_url":"https://api.github.com/users/farmerworking/gists{/gist_id}","starred_url":"https://api.github.com/users/farmerworking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmerworking/subscriptions","organizations_url":"https://api.github.com/users/farmerworking/orgs","repos_url":"https://api.github.com/users/farmerworking/repos","events_url":"https://api.github.com/users/farmerworking/events{/privacy}","received_events_url":"https://api.github.com/users/farmerworking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/distribution","name":"group/distribution","color":"F6FBFF"}],"state":"open","locked":false,"assignee":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-10-19T09:31:49Z","updated_at":"2015-10-22T05:18:01Z","closed_at":null,"body":"### Docker version\r\n\tClient:\r\n\t Version:      1.8.3\r\n\t API version:  1.20\r\n\t Go version:   go1.4.2\r\n\t Git commit:   f4bf5c7\r\n\t Built:        Mon Oct 12 05:37:18 UTC 2015\r\n\t OS/Arch:      linux/amd64\r\n\t\r\n\tServer:\r\n\t Version:      1.8.3\r\n\t API version:  1.20\r\n\t Go version:   go1.4.2\r\n\t Git commit:   f4bf5c7\r\n\t Built:        Mon Oct 12 05:37:18 UTC 2015\r\n\t OS/Arch:      linux/amd64\r\n\r\nAfter v2 api returns 401 error indicating the resource docker is requiring is not authorized, the docker client will continue to try v1 api and after this failed, the client will report resource not found\r\n\r\n![image](http://work.image.alimmdn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202015-10-19%20%E4%B8%8B%E5%8D%885.25.51.png?t=1445246769477)\r\n\r\n![image](http://work.image.alimmdn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202015-10-19%20%E4%B8%8B%E5%8D%885.22.50.png?t=1445246674893)\r\n\r\ndocker client should only try v1 api after v2 api returns 4xx. Now the error message is confusing\r\n\r\nAlthough this happens in docker version 1.8.3, I believe many version have this problem"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/150110909","html_url":"https://github.com/docker/docker/issues/17169#issuecomment-150110909","issue_url":"https://api.github.com/repos/docker/docker/issues/17169","id":150110909,"user":{"login":"farmerworking","id":13062012,"avatar_url":"https://avatars.githubusercontent.com/u/13062012?v=3","gravatar_id":"","url":"https://api.github.com/users/farmerworking","html_url":"https://github.com/farmerworking","followers_url":"https://api.github.com/users/farmerworking/followers","following_url":"https://api.github.com/users/farmerworking/following{/other_user}","gists_url":"https://api.github.com/users/farmerworking/gists{/gist_id}","starred_url":"https://api.github.com/users/farmerworking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmerworking/subscriptions","organizations_url":"https://api.github.com/users/farmerworking/orgs","repos_url":"https://api.github.com/users/farmerworking/repos","events_url":"https://api.github.com/users/farmerworking/events{/privacy}","received_events_url":"https://api.github.com/users/farmerworking/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T05:18:01Z","updated_at":"2015-10-22T05:18:01Z","body":"Oh, I see. But that doesn't help us solve the problem in the first place.\r\n\r\nHow about making the API `/v2/` skip the authentication procedure and will not fallback once this API's response status is 200"}}