Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openshift服务好像又出问题了 #239

Closed
fanwz opened this issue Mar 24, 2016 · 2 comments
Closed

Openshift服务好像又出问题了 #239

fanwz opened this issue Mar 24, 2016 · 2 comments

Comments

@fanwz
Copy link

fanwz commented Mar 24, 2016

补充:经测试,好像是从国内的服务器链接出现了这个问题。
RT
Refreshing, please be patient, it may take upto 60.0 seconds...
Authorizing/refreshing with the OpenShift server ...
[16:30:36] Maximum number (1) of tries failed.
OpenShift server failed, authorizing/refreshing with the Heroku server ...
[16:31:16] Waiting 10 seconds before retrying...
[16:31:26] Request Try #2 / 5
[16:31:38] Exception:
<type 'exceptions.ValueError'> - No JSON object could be decoded
Stack:
File "./bypy.py", line 4368, in
main()
File "./bypy.py", line 4347, in main
result = getattr(by, args.command[0])(_uargs)
File "./bypy.py", line 3213, in search
return self.__get(pcsurl + 'file', pars, self.__search_act)
File "./bypy.py", line 1823, in __get
return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, *_kwargs)
File "./bypy.py", line 1801, in __request
result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, *_kwnew)
File "./bypy.py", line 1670, in __request_work
if ENoError == self.__refresh_token(): # refresh the token and re-request
File "./bypy.py", line 2022, in __refresh_token
result = self.__get(url, pars, self.__refresh_token_act, retry = retry, addtoken = False)
File "./bypy.py", line 1823, in __get
return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, *_kwargs)
File "./bypy.py", line 1801, in __request
result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)
File "./bypy.py", line 1652, in __request_work
perr(formatex(ex))
File "./bypy.py", line 476, in formatex
type(ex), ex, ''.join(traceback.format_stack()))

[16:31:38] Waiting 20 seconds before retrying...
[16:31:58] Request Try #3 / 5
[16:32:28] Waiting 30 seconds before retrying...
[16:32:58] Request Try #4 / 5
[16:33:21] Exception:
<type 'exceptions.ValueError'> - No JSON object could be decoded
Stack:
File "./bypy.py", line 4368, in
main()
File "./bypy.py", line 4347, in main
result = getattr(by, args.command[0])(_uargs)
File "./bypy.py", line 3213, in search
return self.__get(pcsurl + 'file', pars, self.__search_act)
File "./bypy.py", line 1823, in __get
return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, *_kwargs)
File "./bypy.py", line 1801, in __request
result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, *_kwnew)
File "./bypy.py", line 1670, in __request_work
if ENoError == self.__refresh_token(): # refresh the token and re-request
File "./bypy.py", line 2022, in __refresh_token
result = self.__get(url, pars, self.__refresh_token_act, retry = retry, addtoken = False)
File "./bypy.py", line 1823, in __get
return self.__request(url, pars, act, 'GET', actargs, retry, addtoken, dumpex, *_kwargs)
File "./bypy.py", line 1801, in __request
result = self.__request_work(url, pars, act, method, actargs, addtoken, dumpex, **kwnew)
File "./bypy.py", line 1652, in __request_work
perr(formatex(ex))
File "./bypy.py", line 476, in formatex
type(ex), ex, ''.join(traceback.format_stack()))

[16:33:21] Waiting 40 seconds before retrying...
[16:34:01] Request Try #5 / 5
[16:34:08] Exception:
<type 'exceptions.ValueError'> - No JSON object could be decoded

@fanwz
Copy link
Author

fanwz commented Mar 24, 2016

我删除./bypy文件重新授权一次就好了,不知道为何会突然出现这种情况……

@fanwz fanwz closed this as completed Mar 24, 2016
@houtianze
Copy link
Owner

感谢反馈。
这个我觉得是百度那边的问题——超过一个月未使用原令牌就没法再用,虽然文档上说可以刷新,但是实际上好像不是那么回事儿。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants