{"action":"created","issue":{"url":"https://api.github.com/repos/tejado/pgoapi/issues/79","repository_url":"https://api.github.com/repos/tejado/pgoapi","labels_url":"https://api.github.com/repos/tejado/pgoapi/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/tejado/pgoapi/issues/79/comments","events_url":"https://api.github.com/repos/tejado/pgoapi/issues/79/events","html_url":"https://github.com/tejado/pgoapi/issues/79","id":166999145,"number":79,"title":"JSONDecodeError, when the API is down","user":{"login":"Wegi","id":1516122,"avatar_url":"https://avatars.githubusercontent.com/u/1516122?v=3","gravatar_id":"","url":"https://api.github.com/users/Wegi","html_url":"https://github.com/Wegi","followers_url":"https://api.github.com/users/Wegi/followers","following_url":"https://api.github.com/users/Wegi/following{/other_user}","gists_url":"https://api.github.com/users/Wegi/gists{/gist_id}","starred_url":"https://api.github.com/users/Wegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wegi/subscriptions","organizations_url":"https://api.github.com/users/Wegi/orgs","repos_url":"https://api.github.com/users/Wegi/repos","events_url":"https://api.github.com/users/Wegi/events{/privacy}","received_events_url":"https://api.github.com/users/Wegi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T08:51:46Z","updated_at":"2016-07-29T11:24:39Z","closed_at":"2016-07-29T11:24:39Z","body":"This error gets thrown, when the Servers are down:\r\n\r\n```\r\nif not self._auth_provider.login(username, password):\r\n  File \"/home/wegi/.virtualenvs/poke-cruncher/src/pgoapi/pgoapi/auth_ptc.py\", line 56, in login\r\n    jdata = json.loads(r.content.decode('utf-8'))\r\n  File \"/usr/lib64/python3.5/json/__init__.py\", line 319, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/lib64/python3.5/json/decoder.py\", line 339, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/lib64/python3.5/json/decoder.py\", line 357, in raw_decode\r\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 3 column 1 (char 2)\r\n```\r\n\r\n\r\nMaybe add a softfail or a specific exception which can be caught, when server responses are abnormal."},"comment":{"url":"https://api.github.com/repos/tejado/pgoapi/issues/comments/236156977","html_url":"https://github.com/tejado/pgoapi/issues/79#issuecomment-236156977","issue_url":"https://api.github.com/repos/tejado/pgoapi/issues/79","id":236156977,"user":{"login":"tejado","id":3774136,"avatar_url":"https://avatars.githubusercontent.com/u/3774136?v=3","gravatar_id":"","url":"https://api.github.com/users/tejado","html_url":"https://github.com/tejado","followers_url":"https://api.github.com/users/tejado/followers","following_url":"https://api.github.com/users/tejado/following{/other_user}","gists_url":"https://api.github.com/users/tejado/gists{/gist_id}","starred_url":"https://api.github.com/users/tejado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejado/subscriptions","organizations_url":"https://api.github.com/users/tejado/orgs","repos_url":"https://api.github.com/users/tejado/repos","events_url":"https://api.github.com/users/tejado/events{/privacy}","received_events_url":"https://api.github.com/users/tejado/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T11:24:39Z","updated_at":"2016-07-29T11:24:39Z","body":"should be implemented now."}}
{"actor":{"display_login":"tejado"}}