Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

我添加了hosts,依然运行报错。 #51

Open
YangNaner opened this issue Jan 6, 2022 · 1 comment
Open

我添加了hosts,依然运行报错。 #51

YangNaner opened this issue Jan 6, 2022 · 1 comment

Comments

@YangNaner
Copy link

2022-01-06 17:16:52 当前用户:161105024
Traceback (most recent call last):
File "C:\Users\小明\Desktop\auto-submit-master\index.py", line 388, in
print(main_handler({}, {}))
File "C:\Users\小明\Desktop\auto-submit-master\index.py", line 381, in main_handler
raise e
File "C:\Users\小明\Desktop\auto-submit-master\index.py", line 344, in main_handler
apis = getCpdailyApis(user)
File "C:\Users\小明\Desktop\auto-submit-master\index.py", line 37, in getCpdailyApis
schools = requests.get(
File "D:\Program Files\Python39\lib\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "D:\Program Files\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "D:\Program Files\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Program Files\Python39\lib\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)

@wyek1n
Copy link

wyek1n commented Jan 8, 2022

同报错,蹲个大佬。

Traceback (most recent call last):
File "/root/auto-submit/currency/login.py", line 75, in
apis = getCpdailyApis(user)
File "/root/auto-submit/currency/login.py", line 29, in getCpdailyApis
schools = requests.get(url='https://www.cpdaily.com/v6/config/guest/tenant/list', verify=not debug).json()['data']
File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/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)

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

No branches or pull requests

2 participants