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

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #128

Open
xiao468657802 opened this issue Oct 26, 2023 · 1 comment

Comments

@xiao468657802
Copy link

帅哥,已star ,有空帮忙看下这个是什么报错

Traceback (most recent call last):
File "D:\Software\pythondata\venv\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\sss\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\sss\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\sss\AppData\Local\Programs\Python\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)
json.decoder.JSONDecodeError: 期望值: 第 1 行第 1 列 (char 0)
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Software\pythondata\youdaonote-pull-master\pull.py", line 802, in
youdaonote_pull.pull_dir_by_id_recursively(ydnote_dir_id, youdaonote_pull.root_local_dir)
File "D:\Software\pythondata\youdaonote-pull-master\pull.py", line 477, in pull_dir_by_id_recursively
self.pull_dir_by_id_recursively(id, sub_dir)
File "D:\Software\pythondata\youdaonote-pull-master\pull.py", line 477, in pull_dir_by_id_recursively
self.pull_dir_by_id_recursively(id, sub_dir)
File "D:\Software\pythondata\youdaonote-pull-master\pull.py", line 464, in pull_dir_by_id_recursively
dir_info = self.youdaonote_api.get_dir_info_by_id(dir_id)
File "D:\Software\pythondata\youdaonote-pull-master\pull.py", line 412, in get_dir_info_by_id
return self.http_get(url).json()
File "D:\Software\pythondata\venv\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
其他错误: Expecting value: line 1 column 1 (char 0)
requests.exceptions.JSONDecodeError: 期望值: 第 1 行第 1 列 (char 0)
其他错误: 期望值:第 1 行第 1 列(字符 0)

已终止执行

Process finished with exit code 1

@DeppWang
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