{"action":"created","issue":{"url":"https://api.github.com/repos/houtianze/bypy/issues/253","repository_url":"https://api.github.com/repos/houtianze/bypy","labels_url":"https://api.github.com/repos/houtianze/bypy/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/houtianze/bypy/issues/253/comments","events_url":"https://api.github.com/repos/houtianze/bypy/issues/253/events","html_url":"https://github.com/houtianze/bypy/issues/253","id":157605209,"number":253,"title":"无法连接到服务器","user":{"login":"XIAZY","id":8736607,"avatar_url":"https://avatars.githubusercontent.com/u/8736607?v=3","gravatar_id":"","url":"https://api.github.com/users/XIAZY","html_url":"https://github.com/XIAZY","followers_url":"https://api.github.com/users/XIAZY/followers","following_url":"https://api.github.com/users/XIAZY/following{/other_user}","gists_url":"https://api.github.com/users/XIAZY/gists{/gist_id}","starred_url":"https://api.github.com/users/XIAZY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XIAZY/subscriptions","organizations_url":"https://api.github.com/users/XIAZY/orgs","repos_url":"https://api.github.com/users/XIAZY/repos","events_url":"https://api.github.com/users/XIAZY/events{/privacy}","received_events_url":"https://api.github.com/users/XIAZY/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/houtianze/bypy/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-31T07:19:33Z","updated_at":"2016-06-13T13:10:58Z","closed_at":null,"body":"一直以来都没问题，25 号之后突然用不了了。\r\n错误信息：\r\n```\r\nxia@vultr-tokyo:~$ bypy info\r\nRefreshing, please be patient, it may take upto 60.0 seconds...\r\nAuthorizing/refreshing with the OpenShift server ...\r\n<E> [15:18:21] Exception:\r\n<type 'exceptions.ValueError'> - No JSON object could be decoded\r\nStack:\r\n  File \"/usr/local/bin/bypy.py\", line 4368, in <module>\r\n    main()\r\n  File \"/usr/local/bin/bypy.py\", line 4347, in main\r\n    result = getattr(by, args.command[0])(*uargs)\r\n  File \"/usr/local/bin/bypy.py\", line 2070, in info\r\n    return self.quota()\r\n  File \"/usr/local/bin/bypy.py\", line 2076, in quota\r\n    return self.__get(pcsurl + 'quota', pars, self.__quota_act)\r\n  File \"/usr/local/bin/bypy.py\", line 1823, in __get\r\n    return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, **kwargs)\r\n  File \"/usr/local/bin/bypy.py\", line 1801, in __request\r\n    result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)\r\n  File \"/usr/local/bin/bypy.py\", line 1670, in __request_work\r\n    if ENoError == self.__refresh_token(): # refresh the token and re-request\r\n  File \"/usr/local/bin/bypy.py\", line 2022, in __refresh_token\r\n    result = self.__get(url, pars, self.__refresh_token_act, retry = retry, addtoken = False)\r\n  File \"/usr/local/bin/bypy.py\", line 1823, in __get\r\n    return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, **kwargs)\r\n  File \"/usr/local/bin/bypy.py\", line 1801, in __request\r\n    result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)\r\n  File \"/usr/local/bin/bypy.py\", line 1652, in __request_work\r\n    perr(formatex(ex))\r\n  File \"/usr/local/bin/bypy.py\", line 476, in formatex\r\n    type(ex), ex, ''.join(traceback.format_stack()))\r\n\r\n<E> [15:18:21] Maximum number (1) of tries failed.\r\nOpenShift server failed, authorizing/refreshing with the Heroku server ...\r\n<E> [15:18:22] Exception:\r\n<type 'exceptions.ValueError'> - No JSON object could be decoded\r\nStack:\r\n  File \"/usr/local/bin/bypy.py\", line 4368, in <module>\r\n    main()\r\n  File \"/usr/local/bin/bypy.py\", line 4347, in main\r\n    result = getattr(by, args.command[0])(*uargs)\r\n  File \"/usr/local/bin/bypy.py\", line 2070, in info\r\n    return self.quota()\r\n  File \"/usr/local/bin/bypy.py\", line 2076, in quota\r\n    return self.__get(pcsurl + 'quota', pars, self.__quota_act)\r\n  File \"/usr/local/bin/bypy.py\", line 1823, in __get\r\n    return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, **kwargs)\r\n  File \"/usr/local/bin/bypy.py\", line 1801, in __request\r\n    result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)\r\n  File \"/usr/local/bin/bypy.py\", line 1670, in __request_work\r\n    if ENoError == self.__refresh_token(): # refresh the token and re-request\r\n  File \"/usr/local/bin/bypy.py\", line 2022, in __refresh_token\r\n    result = self.__get(url, pars, self.__refresh_token_act, retry = retry, addtoken = False)\r\n  File \"/usr/local/bin/bypy.py\", line 1823, in __get\r\n    return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, **kwargs)\r\n  File \"/usr/local/bin/bypy.py\", line 1801, in __request\r\n    result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)\r\n  File \"/usr/local/bin/bypy.py\", line 1652, in __request_work\r\n    perr(formatex(ex))\r\n  File \"/usr/local/bin/bypy.py\", line 476, in formatex\r\n    type(ex), ex, ''.join(traceback.format_stack()))\r\n\r\n<E> [15:18:22] Waiting 10 seconds before retrying...\r\n^CSignal 2 received, Abort\r\n```"},"comment":{"url":"https://api.github.com/repos/houtianze/bypy/issues/comments/225576080","html_url":"https://github.com/houtianze/bypy/issues/253#issuecomment-225576080","issue_url":"https://api.github.com/repos/houtianze/bypy/issues/253","id":225576080,"user":{"login":"houtianze","id":99046,"avatar_url":"https://avatars.githubusercontent.com/u/99046?v=3","gravatar_id":"","url":"https://api.github.com/users/houtianze","html_url":"https://github.com/houtianze","followers_url":"https://api.github.com/users/houtianze/followers","following_url":"https://api.github.com/users/houtianze/following{/other_user}","gists_url":"https://api.github.com/users/houtianze/gists{/gist_id}","starred_url":"https://api.github.com/users/houtianze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houtianze/subscriptions","organizations_url":"https://api.github.com/users/houtianze/orgs","repos_url":"https://api.github.com/users/houtianze/repos","events_url":"https://api.github.com/users/houtianze/events{/privacy}","received_events_url":"https://api.github.com/users/houtianze/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T13:10:58Z","updated_at":"2016-06-13T13:10:58Z","body":"手动删除`~.bypy`目录重新授权呢？"}}
{"actor":{"display_login":"houtianze"}}