{"action":"created","issue":{"url":"https://api.github.com/repos/magsol/garmin/issues/14","repository_url":"https://api.github.com/repos/magsol/garmin","labels_url":"https://api.github.com/repos/magsol/garmin/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/magsol/garmin/issues/14/comments","events_url":"https://api.github.com/repos/magsol/garmin/issues/14/events","html_url":"https://github.com/magsol/garmin/issues/14","id":192996430,"number":14,"title":"mechanize crash","user":{"login":"jorissen","id":3476583,"avatar_url":"https://avatars.githubusercontent.com/u/3476583?v=3","gravatar_id":"","url":"https://api.github.com/users/jorissen","html_url":"https://github.com/jorissen","followers_url":"https://api.github.com/users/jorissen/followers","following_url":"https://api.github.com/users/jorissen/following{/other_user}","gists_url":"https://api.github.com/users/jorissen/gists{/gist_id}","starred_url":"https://api.github.com/users/jorissen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorissen/subscriptions","organizations_url":"https://api.github.com/users/jorissen/orgs","repos_url":"https://api.github.com/users/jorissen/repos","events_url":"https://api.github.com/users/jorissen/events{/privacy}","received_events_url":"https://api.github.com/users/jorissen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-01T23:54:46Z","updated_at":"2016-12-23T02:00:02Z","closed_at":null,"body":"tried script with mixed result -- downloaded about 120 workouts, then crashed with \r\n\r\n2015-01-31_700755201.txt is downloading...\r\nTraceback (most recent call last):\r\n  File \"download.py\", line 207, in <module>\r\n    download_files_for_user(username, password, output)\r\n  File \"download.py\", line 162, in download_files_for_user\r\n    activities(agent, download_folder)\r\n  File \"download.py\", line 131, in activities\r\n    datafile = agent.open(url).get_data()\r\n  File \"/Library/Python/2.7/site-packages/mechanize/_mechanize.py\", line 203, in open\r\n    return self._mech_open(url, data, timeout=timeout)\r\n  File \"/Library/Python/2.7/site-packages/mechanize/_mechanize.py\", line 255, in _mech_open\r\n    raise response\r\nmechanize._response.httperror_seek_wrapper: HTTP Error 500: Internal Server Error\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magsol/garmin/issues/comments/268928855","html_url":"https://github.com/magsol/garmin/issues/14#issuecomment-268928855","issue_url":"https://api.github.com/repos/magsol/garmin/issues/14","id":268928855,"user":{"login":"jorissen","id":3476583,"avatar_url":"https://avatars.githubusercontent.com/u/3476583?v=3","gravatar_id":"","url":"https://api.github.com/users/jorissen","html_url":"https://github.com/jorissen","followers_url":"https://api.github.com/users/jorissen/followers","following_url":"https://api.github.com/users/jorissen/following{/other_user}","gists_url":"https://api.github.com/users/jorissen/gists{/gist_id}","starred_url":"https://api.github.com/users/jorissen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorissen/subscriptions","organizations_url":"https://api.github.com/users/jorissen/orgs","repos_url":"https://api.github.com/users/jorissen/repos","events_url":"https://api.github.com/users/jorissen/events{/privacy}","received_events_url":"https://api.github.com/users/jorissen/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T02:00:02Z","updated_at":"2016-12-23T02:00:02Z","body":"I've tried running it several more times, and it always times out before downloading all of the workouts in my account, usually after a handful of workouts. Since it doesn't re-download files, I've collected most of what I need, step by step.  I'm not sure if the mechanize library is just overly sensitive to something; or garmin's servers are flaky as hell.  The first time (reported above, when I was able to grab 120 files in one go) was on a very good internet connection - maybe that's also a factor.\r\n\r\nI have only the one garmin account, and not much insight into these processes, so I probably don't have much more to contribute.\r\n\r\nMerry Christmas --  "}}
{"actor":{"display_login":"jorissen"}}