{"action":"created","issue":{"url":"https://api.github.com/repos/docker/notary/issues/468","labels_url":"https://api.github.com/repos/docker/notary/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/docker/notary/issues/468/comments","events_url":"https://api.github.com/repos/docker/notary/issues/468/events","html_url":"https://github.com/docker/notary/issues/468","id":126985774,"number":468,"title":"Notary not falling back on 404 and DNS errors","user":{"login":"diogomonica","id":55332,"avatar_url":"https://avatars.githubusercontent.com/u/55332?v=3","gravatar_id":"","url":"https://api.github.com/users/diogomonica","html_url":"https://github.com/diogomonica","followers_url":"https://api.github.com/users/diogomonica/followers","following_url":"https://api.github.com/users/diogomonica/following{/other_user}","gists_url":"https://api.github.com/users/diogomonica/gists{/gist_id}","starred_url":"https://api.github.com/users/diogomonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogomonica/subscriptions","organizations_url":"https://api.github.com/users/diogomonica/orgs","repos_url":"https://api.github.com/users/diogomonica/repos","events_url":"https://api.github.com/users/diogomonica/events{/privacy}","received_events_url":"https://api.github.com/users/diogomonica/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/notary/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/notary/milestones/6","html_url":"https://github.com/docker/notary/milestones/notary/0.2","labels_url":"https://api.github.com/repos/docker/notary/milestones/6/labels","id":1485686,"number":6,"title":"notary/0.2","description":"","creator":{"login":"diogomonica","id":55332,"avatar_url":"https://avatars.githubusercontent.com/u/55332?v=3","gravatar_id":"","url":"https://api.github.com/users/diogomonica","html_url":"https://github.com/diogomonica","followers_url":"https://api.github.com/users/diogomonica/followers","following_url":"https://api.github.com/users/diogomonica/following{/other_user}","gists_url":"https://api.github.com/users/diogomonica/gists{/gist_id}","starred_url":"https://api.github.com/users/diogomonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogomonica/subscriptions","organizations_url":"https://api.github.com/users/diogomonica/orgs","repos_url":"https://api.github.com/users/diogomonica/repos","events_url":"https://api.github.com/users/diogomonica/events{/privacy}","received_events_url":"https://api.github.com/users/diogomonica/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":15,"state":"open","created_at":"2016-01-05T19:39:48Z","updated_at":"2016-01-22T18:55:34Z","due_on":"2016-02-03T08:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-16T00:25:19Z","updated_at":"2016-01-22T18:55:34Z","closed_at":"2016-01-22T18:55:34Z","body":"If notary is pointed to a random remote server that returns a 404, it should fallback, but it doesn't:\r\n\r\n```\r\n➜  notary list docker.io/library/ubuntu -s https://example.com    \r\nERRO[0000] Client Update (Timestamp): timestamp trust data unavailable.  Has a notary repository been initialized? \r\nERRO[0000] client Update (Root):root trust data unavailable.  Has a notary repository been initialized? \r\n* fatal: example.com does not have trust data for docker.io/library/ubuntu\r\n```\r\n\r\nIf notary can't resolve the DNS of the remote host, it also should fallback, but it doesn't:\r\n\r\n```\r\n➜  notary list docker.io/library/ubuntu -s https://notary.docker.io\r\n* fatal: Get https://notary.docker.io/v2/: dial tcp: lookup notary.docker.io on [::1]:53: read udp [::1]:39327->[::1]:53: read: connection refused\r\nnotary list docker.io/library/ubuntu -s https://notary.docker.io  0.00s user 0.00s system 102% cpu 0.006 total\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/notary/issues/comments/174011490","html_url":"https://github.com/docker/notary/issues/468#issuecomment-174011490","issue_url":"https://api.github.com/repos/docker/notary/issues/468","id":174011490,"user":{"login":"endophage","id":1302091,"avatar_url":"https://avatars.githubusercontent.com/u/1302091?v=3","gravatar_id":"","url":"https://api.github.com/users/endophage","html_url":"https://github.com/endophage","followers_url":"https://api.github.com/users/endophage/followers","following_url":"https://api.github.com/users/endophage/following{/other_user}","gists_url":"https://api.github.com/users/endophage/gists{/gist_id}","starred_url":"https://api.github.com/users/endophage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endophage/subscriptions","organizations_url":"https://api.github.com/users/endophage/orgs","repos_url":"https://api.github.com/users/endophage/repos","events_url":"https://api.github.com/users/endophage/events{/privacy}","received_events_url":"https://api.github.com/users/endophage/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T18:55:34Z","updated_at":"2016-01-22T18:55:34Z","body":"With the bugfix to #469 merged, I believe this is now fixed. There is more than can be done (i.e. return a specific JSON body or header to get a positive ID), but the update should be sufficient for the majority of cases."}}