{"action":"opened","issue":{"url":"https://api.github.com/repos/nhoffman/uwgroups/issues/1","repository_url":"https://api.github.com/repos/nhoffman/uwgroups","labels_url":"https://api.github.com/repos/nhoffman/uwgroups/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nhoffman/uwgroups/issues/1/comments","events_url":"https://api.github.com/repos/nhoffman/uwgroups/issues/1/events","html_url":"https://github.com/nhoffman/uwgroups/issues/1","id":352218494,"node_id":"MDU6SXNzdWUzNTIyMTg0OTQ=","number":1,"title":"Timeout when calling self.connection.request","user":{"login":"twekberg","id":1850934,"node_id":"MDQ6VXNlcjE4NTA5MzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1850934?v=4","gravatar_id":"","url":"https://api.github.com/users/twekberg","html_url":"https://github.com/twekberg","followers_url":"https://api.github.com/users/twekberg/followers","following_url":"https://api.github.com/users/twekberg/following{/other_user}","gists_url":"https://api.github.com/users/twekberg/gists{/gist_id}","starred_url":"https://api.github.com/users/twekberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twekberg/subscriptions","organizations_url":"https://api.github.com/users/twekberg/orgs","repos_url":"https://api.github.com/users/twekberg/repos","events_url":"https://api.github.com/users/twekberg/events{/privacy}","received_events_url":"https://api.github.com/users/twekberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-20T17:00:18Z","updated_at":"2018-08-20T17:00:18Z","closed_at":null,"author_association":"NONE","body":"I'm getting a new timeout when calling self.connection.request in uwgroups.api  in the _request method. This is in a loop that attempts 3 retries before giving up, but if a timeout occurs it breaks out of the loop. I suggest adding another exception to check for a socket timeout.\r\n\r\nAt the top of api.py add:\r\n```\r\nimport socket\r\nimport errno\r\n```\r\nAdd another except clause after the self.connection.request call. Something like this:\r\n```\r\nexcept socket.error,err:\r\n  if err.errno != errno.ETIMEDOUT:\r\n    break\r\n```\r\nThere is no timeout parameter to the self.connection.request method. If 3 attempts are not sufficient, the attempts parameter to the _request method may have to be increased."}}
{"actor":{"display_login":"twekberg"}}