fffonion / Xunlei-Fastdick

迅雷快鸟 Xunlei Network Accelerator For Router
https://yooooo.us/2015/xunlei-fastdick-router
819 stars 176 forks source link

无法登录,UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b #137

Closed MEZboy closed 6 years ago

MEZboy commented 6 years ago

具体报错如下,已试过改密码、更新最新swjsq.py。 Traceback (most recent call last): File "swjsq.py", line 816, in ins.run(uid, pwd) File "swjsq.py", line 344, in run dt = _lm() File "swjsq.py", line 338, in login_methods = [lambda : self.login_xunlei(uname, pwd)] File "swjsq.py", line 245, in login_xunlei ct = http_req('https://mobile-login.xunlei.com:443/login', body=json.dumps(_payload), headers=header_xl, encoding='utf-8') File "swjsq.py", line 175, in http_req ret = resp.read().decode(encoding) File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte

fffonion commented 6 years ago

并入#136 讨论