{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/fetch/issues/205","repository_url":"https://api.github.com/repos/whatwg/fetch","labels_url":"https://api.github.com/repos/whatwg/fetch/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/fetch/issues/205/comments","events_url":"https://api.github.com/repos/whatwg/fetch/issues/205/events","html_url":"https://github.com/whatwg/fetch/issues/205","id":128570659,"number":205,"title":"error types too vague for TLS certificate error","user":{"login":"bblfish","id":124506,"avatar_url":"https://avatars.githubusercontent.com/u/124506?v=3","gravatar_id":"","url":"https://api.github.com/users/bblfish","html_url":"https://github.com/bblfish","followers_url":"https://api.github.com/users/bblfish/followers","following_url":"https://api.github.com/users/bblfish/following{/other_user}","gists_url":"https://api.github.com/users/bblfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bblfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblfish/subscriptions","organizations_url":"https://api.github.com/users/bblfish/orgs","repos_url":"https://api.github.com/users/bblfish/repos","events_url":"https://api.github.com/users/bblfish/events{/privacy}","received_events_url":"https://api.github.com/users/bblfish/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-25T16:10:07Z","updated_at":"2016-03-14T15:54:56Z","closed_at":"2016-03-14T10:39:21Z","body":"If the JS opens a URL to a server that has a problem with the TLS connection because the server certificate is not signed correctly, the `fetch(...)` method just returns a TypeError\r\n\r\n<img width=\"493\" alt=\"screenshot 2016-01-25 16 05 48\" src=\"https://cloud.githubusercontent.com/assets/124506/12556454/de131d64-c37d-11e5-83cf-b082fbb117b9.png\">\r\n\r\nIt would be useful in this case to have a TLSConnectionError exception, explaining the problem so that JS could at least build an explantation of what went wrong. Perhaps this would allow people to send feedback to the web site owner. It would also allow us to run sites locally for testing (as in the picture `joe.example` is running on my machine) and not constantly be wondering why we have problems (I keep jumping around tasks and I keep forgetting this)"},"comment":{"url":"https://api.github.com/repos/whatwg/fetch/issues/comments/196381213","html_url":"https://github.com/whatwg/fetch/issues/205#issuecomment-196381213","issue_url":"https://api.github.com/repos/whatwg/fetch/issues/205","id":196381213,"user":{"login":"timbl","id":1254848,"avatar_url":"https://avatars.githubusercontent.com/u/1254848?v=3","gravatar_id":"","url":"https://api.github.com/users/timbl","html_url":"https://github.com/timbl","followers_url":"https://api.github.com/users/timbl/followers","following_url":"https://api.github.com/users/timbl/following{/other_user}","gists_url":"https://api.github.com/users/timbl/gists{/gist_id}","starred_url":"https://api.github.com/users/timbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbl/subscriptions","organizations_url":"https://api.github.com/users/timbl/orgs","repos_url":"https://api.github.com/users/timbl/repos","events_url":"https://api.github.com/users/timbl/events{/privacy}","received_events_url":"https://api.github.com/users/timbl/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T15:54:56Z","updated_at":"2016-03-14T15:54:56Z","body":"- Some sort of way of empowering/managing trusted apps.   \r\n- Use native\r\n- use Atom, APM ..."}}