{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2661","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2661/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2661/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2661/events","html_url":"https://github.com/micropython/micropython/issues/2661","id":193376340,"number":2661,"title":"Clearer error messages for networking on ESP8266","user":{"login":"askvictor","id":1728474,"avatar_url":"https://avatars.githubusercontent.com/u/1728474?v=3","gravatar_id":"","url":"https://api.github.com/users/askvictor","html_url":"https://github.com/askvictor","followers_url":"https://api.github.com/users/askvictor/followers","following_url":"https://api.github.com/users/askvictor/following{/other_user}","gists_url":"https://api.github.com/users/askvictor/gists{/gist_id}","starred_url":"https://api.github.com/users/askvictor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askvictor/subscriptions","organizations_url":"https://api.github.com/users/askvictor/orgs","repos_url":"https://api.github.com/users/askvictor/repos","events_url":"https://api.github.com/users/askvictor/events{/privacy}","received_events_url":"https://api.github.com/users/askvictor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-04T21:16:53Z","updated_at":"2016-12-05T05:14:45Z","closed_at":null,"body":"I'm occasionally getting OSError -2 when a networking problem occurs. It would be considerably more useful if this error described, at the very least, that this was a network error, or even better, what type of network error."},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/264769807","html_url":"https://github.com/micropython/micropython/issues/2661#issuecomment-264769807","issue_url":"https://api.github.com/repos/micropython/micropython/issues/2661","id":264769807,"user":{"login":"askvictor","id":1728474,"avatar_url":"https://avatars.githubusercontent.com/u/1728474?v=3","gravatar_id":"","url":"https://api.github.com/users/askvictor","html_url":"https://github.com/askvictor","followers_url":"https://api.github.com/users/askvictor/followers","following_url":"https://api.github.com/users/askvictor/following{/other_user}","gists_url":"https://api.github.com/users/askvictor/gists{/gist_id}","starred_url":"https://api.github.com/users/askvictor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askvictor/subscriptions","organizations_url":"https://api.github.com/users/askvictor/orgs","repos_url":"https://api.github.com/users/askvictor/repos","events_url":"https://api.github.com/users/askvictor/events{/privacy}","received_events_url":"https://api.github.com/users/askvictor/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T05:14:45Z","updated_at":"2016-12-05T05:14:45Z","body":"So I can re-create the error by using upip. If I reboot the device, network stuff seems to work fine, then I'll try to install a package with upip (I was trying to install umqtt.simple). This returns a 404, and thereafter any attempt to access the network results in OSError: -2; for example a call to `socket.getaddrinfo('micropython.org', 80)[0][-1]` does this. After a reset things work fine. It appears to only be a problem if the upip install returned a 404 - if the package installed successfully it seems to continue fine, and a couple of packages gave back 301 and things continued to work."}}
{"actor":{"display_login":"askvictor"}}