{"action":"created","issue":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/247","labels_url":"https://api.github.com/repos/yadayada/acd_cli/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/yadayada/acd_cli/issues/247/comments","events_url":"https://api.github.com/repos/yadayada/acd_cli/issues/247/events","html_url":"https://github.com/yadayada/acd_cli/issues/247","id":126012659,"number":247,"title":"Error refreshing authentication token","user":{"login":"blazer0x","id":12121252,"avatar_url":"https://avatars.githubusercontent.com/u/12121252?v=3","gravatar_id":"","url":"https://api.github.com/users/blazer0x","html_url":"https://github.com/blazer0x","followers_url":"https://api.github.com/users/blazer0x/followers","following_url":"https://api.github.com/users/blazer0x/following{/other_user}","gists_url":"https://api.github.com/users/blazer0x/gists{/gist_id}","starred_url":"https://api.github.com/users/blazer0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazer0x/subscriptions","organizations_url":"https://api.github.com/users/blazer0x/orgs","repos_url":"https://api.github.com/users/blazer0x/repos","events_url":"https://api.github.com/users/blazer0x/events{/privacy}","received_events_url":"https://api.github.com/users/blazer0x/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yadayada/acd_cli/labels/oauth","name":"oauth","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-11T19:01:32Z","updated_at":"2016-01-11T20:53:06Z","closed_at":null,"body":"I've been using acd_cli for a few weeks now. I am still in the process of uploading a large amount of data. acd_cli performed flawlessly for over a week of constant uploads without interruption. A couple of days ago though it started throwing \"Error refreshing authentication token\" errors, and I would have to fetch a new oauth_data token to continue the upload or any other thing like sync.  \r\n\r\nI can see that the default \"expires_in\" time is 3600 (seconds). But previously acd_cli was properly using the refresh_token to refresh the oauth data, and for some reason it has stopped doing this.\r\n\r\nIs there a way I can troubleshoot this to determine if the issue is on the Amazon API side, or a local issue with either python or the code itself?\r\n\r\nHere is an example of a failure once the token expires:\r\n```\r\n$ acd_cli upload -x 4 /some/path/ /BACKUP/\r\n16-01-11 11:42:15.474 [ERROR] [acd_cli] - Uploading \"somefile.ext\" failed. RequestError: 400, {\"message\":\"Cannot\r\ncomplete upload\"}.\r\n16-01-11 11:42:16.320 [CRITICAL] [acdcli.api.oauth] - Error refreshing authentication token.\r\n```\r\n\r\nAfter an error such as above, I have to manually update the oauth_data file and then I can upload data for another hour.\r\n\r\n$ acd_cli version\r\nacd_cli 0.3.1, api 0.8.8\r\n"},"comment":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/comments/170686498","html_url":"https://github.com/yadayada/acd_cli/issues/247#issuecomment-170686498","issue_url":"https://api.github.com/repos/yadayada/acd_cli/issues/247","id":170686498,"user":{"login":"blazer0x","id":12121252,"avatar_url":"https://avatars.githubusercontent.com/u/12121252?v=3","gravatar_id":"","url":"https://api.github.com/users/blazer0x","html_url":"https://github.com/blazer0x","followers_url":"https://api.github.com/users/blazer0x/followers","following_url":"https://api.github.com/users/blazer0x/following{/other_user}","gists_url":"https://api.github.com/users/blazer0x/gists{/gist_id}","starred_url":"https://api.github.com/users/blazer0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazer0x/subscriptions","organizations_url":"https://api.github.com/users/blazer0x/orgs","repos_url":"https://api.github.com/users/blazer0x/repos","events_url":"https://api.github.com/users/blazer0x/events{/privacy}","received_events_url":"https://api.github.com/users/blazer0x/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T20:53:06Z","updated_at":"2016-01-11T20:53:06Z","body":"I just noticed I also get these errors back to back:\r\n16-01-11 13:49:58.347 [CRITICAL] [acdcli.api.oauth] - Error refreshing authentication token.\r\n16-01-11 13:49:58.348 [ERROR] [acd_cli] - Uploading \"file.ext failed. RequestError: 1000, [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)."}}