-
Notifications
You must be signed in to change notification settings - Fork 24
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
【已解决】你好作者大大,运行AddUser-noinput.py出错,求解答 #32
Comments
2023-12-12 11:43:41 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): sxbaapp.zcj.jyt.henan.gov.cn:80 - connectionpool.py - _new_conn - 244 这个是log日志 |
哥们,你是不是把职校家园的密码输错了 |
还有,建议使用python3.9以上的青龙面板,或者删除process.py里29行encoding="utf-8"参数 |
账号密码没有错,删除 process.py里29行encoding="utf-8"参数后 AddUser-noinput.py脚本变为一直运行状态了 |
encoding前有个逗号也要删除,另外看看报错信息,还有20081代码就是账号密码错了 |
我再试试,麻烦您了 |
已经成功可以运行了,谢谢作者大大 |
系统平台(Windows、Linux、云函数):liunx(青龙面板)
config.py内开启了什么功能:无
问题详细描述(怎么发现的问题):在定时任务中运行AddUser-noinput.py出错
终端报错输出(最后几行即可):## 开始执行... 2023-12-12 11:20:58
Traceback (most recent call last):
File "/ql/data/scripts/zycn0910_Sign-ZXJY/AddUser-noinput.py", line 122, in
name = json.loads(get_account_data(device, phone, password))['data']['uname']
File "/ql/data/scripts/zycn0910_Sign-ZXJY/process.py", line 287, in get_account_data
uid = user_data['data']['uid']
KeyError: 'uid'
执行结束... 2023-12-12 11:20:59 耗时 1 秒
日志(config.py内log改为Tru后,在log文件夹下查看):无
The text was updated successfully, but these errors were encountered: