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

运行报错 #3

Open
jwhsir opened this issue Oct 11, 2021 · 4 comments
Open

运行报错 #3

jwhsir opened this issue Oct 11, 2021 · 4 comments

Comments

@jwhsir
Copy link

jwhsir commented Oct 11, 2021

运行报错,错误代码如下。请问是我部署的方式有问题吗?感谢!

Run python dailyFudan.py
Traceback (most recent call last):
File "dailyFudan.py", line 107, in
if not login.check():
File "dailyFudan.py", line 68, in check
self.last_info = json.loads(self.session.get(url_get_info).text)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.8.12/x64/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 10 column 1 (char 18)
Error: Process completed with exit code 1.

@meihaod
Copy link
Owner

meihaod commented Oct 11, 2021

建议先自己填一次,然后再运行。之后应该就没问题了

@jwhsir
Copy link
Author

jwhsir commented Oct 11, 2021

建议先自己填一次,然后再运行。之后应该就没问题了

感谢回复,我再试试!

@jwhsir
Copy link
Author

jwhsir commented Oct 13, 2021

已经尝试:(1)当天先手动填报,然后再手动运行一次actions;(2)前一天手动填报,第二天自动运行actions。但是问题依然存在,报错代码如下。

Run python dailyFudan.py
Traceback (most recent call last):
File "dailyFudan.py", line 107, in
if not login.check():
File "dailyFudan.py", line 68, in check
self.last_info = json.loads(self.session.get(url_get_info).text)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.8.12/x64/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 10 column 1 (char 18)
Error: Process completed with exit code 1.

请问是我部署的方式有问题吗?或者哪里的设置还需要调整?谢谢!!

@meihaod
Copy link
Owner

meihaod commented Oct 17, 2021

感觉json的解析问题,具体要查看你的json数据。要不你用别人的代码试试?

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