-
Notifications
You must be signed in to change notification settings - Fork 437
Description
前端亮后端ping不通没有网2020-02-04 09:15:11 ERROR webapi_utils.py:38 Traceback (most recent call last):
File "/root/shadowsocks/webapi_utils.py", line 25, in getApi
data = res.json()
File "/usr/lib/python3.8/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/shadowsocks/webapi_utils.py", line 29, in getApi
raise Exception('error data!')
Exception: error data!
2020-02-04 09:15:11 ERROR web_transfer.py:672 Traceback (most recent call last):
File "/root/shadowsocks/webapi_utils.py", line 25, in getApi
data = res.json()
File "/usr/lib/python3.8/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/shadowsocks/webapi_utils.py", line 29, in getApi
raise Exception('error data!')
Exception: error data!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/shadowsocks/web_transfer.py", line 666, in thread_db
rows = db_instance.pull_db_all_user()
File "/root/shadowsocks/web_transfer.py", line 225, in pull_db_all_user
data = webapi.getApi('users', {'node_id': get_config().NODE_ID})
File "/root/shadowsocks/webapi_utils.py", line 39, in getApi
raise Exception('network issue or server error!')
Exception: network issue or server error!