-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
无法授权,错误:Failed to decode JSON #155
Comments
在删除~/.bypy 文件夹重新授权时成功 |
是不是里上次用超过一个月了?好像这个是百度那边的问题,本来说好10年内refresh token都没问题,实际上好像超过一个月百度就拧巴了。。 |
@houtianze 邮件乱码了居然……一直都没事 |
另外貌似放在screen里一阵不看着它它就假死了,连已用时间都不走。再resume screen就又恢复了。(RPi) |
@xavieryao 嗯,这个我考虑改一下授权服务器。 假死问题还在?还是刷新token前存在的? |
我也出现这个错误,也删除了/.bypy,还是不行 |
~/.bypy 发自我的 iPad
|
[22:50:43] Failed to decode JSON: [22:50:43] Token-refreshing on all the servers failed 我是最近改了百度云密码后出现的这个问题。 在墙往,应该和walled没有关系吧? |
试试 |
搞定,多谢 |
昨天我上传还好好的。 |
@fanxinwuyou 贴下log? |
@houtianze 为什么不做 #136 ? |
帖上log,我用的是树莓派。 pi@raspberrypi ~/yunpan $ sudo bypy.py -v -d syncup Debug = 1Loading Hash Cache File '/root/.bypy/bypy.pickle'... Please visit: [16:15:16] Function: __server_auth_act |
@fanxinwuyou 后面你没有再等一下?第一个服务器不行,后面的rhcloud,heroku的也不行? |
@houtianze 我在虚拟机里安装ubuntu使用代理,授权成功后。然后拷贝授权后的2个文件到树莓派中。成功搞定。 |
@fanxinwuyou 不客气。这个听起来有点奇怪,除非当时是Openshift和Heroku的服务器都down了才会出现这种情况。 墙这个问题挺讨厌,本来GAE是最稳定的,而且免费配额足够用,可惜大多数人都用不了。。考虑改一下服务器的顺序,把GAE放到最后,这样至少正常情况下多数用户不用浪费1分钟来等授权。 |
今天我也出现同样的问题了,用bypy -c 删除授权文件。 再尝试授权就不成功了。 我在墙外... Please visit: |
@chovan 后来我在虚拟机里多试了几次,成功了,将授权文件拷到树莓派就可以用了。原因可能是服务器一时连不上。 |
@fanxinwuyou 看到你的留言我又试了一次,这次授权成功了。 谢谢! |
GAE的估计是墙发威了,试试最新版吧,现在GAE已经放在最后,前面是红帽和Heroku的服务器,应该没被墙。 |
现在HeroKu的服务器也被墙了吗? 第一个顺序就是这个, 而且等很久10分钟之后显示失败 |
Heroku失败了之后切换到了Heroku1, 也是失败 |
刚查了一下,好像 |
之前有试过删除, 但是删除了还是不行
… 2021年10月12日 下午3:09,Hou Tianze ***@***.***> 写道:
刚查了一下,好像heroku没被墙。试试删掉配置文件重新授权呢?
rm -Rf ~/.bypy
rm -f ~/.bypy.*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#155 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJ7W3EULBNTW6NCWYW4EQSDUGPNMJANCNFSM4BE4AKRQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
我看好像日志显示没有文件 bypy.json
… 2021年10月12日 下午3:09,Hou Tianze ***@***.***> 写道:
刚查了一下,好像heroku没被墙。试试删掉配置文件重新授权呢?
rm -Rf ~/.bypy
rm -f ~/.bypy.*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#155 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJ7W3EULBNTW6NCWYW4EQSDUGPNMJANCNFSM4BE4AKRQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
这是我的日志, sudo bypy info -dv
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import x509
<D> [23:55:41] Using requests.packages.urllib3 to disable warnings
<D> [23:55:41] Using urllib3 to disable warnings
Loading Hash Cache File '/Users/zhaoyxiong/.bypy/bypy.hashcache.json'...
Hash Cache File '/Users/zhaoyxiong/.bypy/bypy.hashcache.json' not found, no caching
----
Verbose level = 1
Debug level = 1
Config directory: '/Users/zhaoyxiong/.bypy'
Token file: '/Users/zhaoyxiong/.bypy/bypy.json'
Hash Cache file: '/Users/zhaoyxiong/.bypy/bypy.hashcache.json'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = UTF-8
sys.stderr.encoding = UTF-8
----
<D> Error while loading baidu pcs token.
Exception:
<type 'exceptions.IOError'> - [Errno 2] No such file or directory: '/Users/zhaoyxiong/.bypy/bypy.json'
Stack:
File "/usr/local/bin/bypy", line 11, in <module>
load_entry_point('bypy==1.7.2', 'console_scripts', 'bypy')()
File "/Library/Python/2.7/site-packages/bypy-1.7.2-py2.7.egg/bypy/bypy.py", line 3747, in main
by = ByPy(**bypyopt)
File "/Library/Python/2.7/site-packages/bypy-1.7.2-py2.7.egg/bypy/bypy.py", line 457, in __init__
if not self.__load_local_json():
File "/Library/Python/2.7/site-packages/bypy-1.7.2-py2.7.egg/bypy/bypy.py", line 933, in __load_local_json
self.pd("Error while loading baidu pcs token.\n{}".format(formatex(ex)))
File "/Library/Python/2.7/site-packages/bypy-1.7.2-py2.7.egg/bypy/util.py", line 73, in formatex
type(ex), ex, ''.join(traceback.format_stack()))
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk&redirect_uri=oob&response_type=code&client_id=q8WE4EpCsau1oS0MplgMKNBn
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
… 2021年10月12日 下午3:09,Hou Tianze ***@***.***> 写道:
刚查了一下,好像heroku没被墙。试试删掉配置文件重新授权呢?
rm -Rf ~/.bypy
rm -f ~/.bypy.*
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#155 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJ7W3EULBNTW6NCWYW4EQSDUGPNMJANCNFSM4BE4AKRQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
刚刚发布了最新版 |
The text was updated successfully, but these errors were encountered: