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

二次选择任务,任务信息无法正常获取 #17

Open
Rain-shadow opened this issue Mar 17, 2022 · 1 comment
Open

二次选择任务,任务信息无法正常获取 #17

Rain-shadow opened this issue Mar 17, 2022 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Rain-shadow
Copy link
Owner

另外在刷完一个任务之后选择下一个任务的时候会报以下错误,但是重启软件之后还是能继续刷的,下面是错误日志

[Info] 开始做【B2 Unit1 Reading1】,目标分数:100
[Info] 题库装载完毕!
[Info] 模拟加载流程
[Info] {"code":0,"msg":"对不起,创建任务信息失败,请返回首页重新加载","data":null}
{'task_id': -1, 'course_id': 'JJ_2', 'list_id': 'JJ_2_1_1', 'timestamp': 1647499298225, 'versions': '1.2.0'}
[Info] {"code":0,"msg":"对不起,创建任务信息失败,请返回首页重新加载","data":null}

[Error] Traceback (most recent call last):
File "main.py", line 31, in
File "cdr\core.py", line 65, in do_homework
File "asyncio\base_events.py", line 641, in run_until_complete
File "cdr\test\myself_task.py", line 67, in run
File "cdr\test\cdr_task.py", line 48, in start_task
File "cdr\aio\tasks.py", line 31, in run
File "cdr\aio\tasks.py", line 49, in __work
File "cdr\aio\tasks.py", line 37, in __work
File "cdr\test\myself_task.py", line 109, in do_task
TypeError: 'NoneType' object is not subscriptable

[Error] 'NoneType' object is not subscriptable
[Error] 未知异常,请上报此错误(error-last.txt)给GM
[Error] 你可以在“main\log\”下找到error-last.txt

Originally posted by @lisheng15 in #15 (comment)

@Rain-shadow Rain-shadow added the bug Something isn't working label Mar 17, 2022
@Rain-shadow
Copy link
Owner Author

复现步骤:先选择一个已获取任务信息(由task_id是否为-1判断)和一个未获取任务信息的2个任务同时做,完成后重新进入自选任务,此时选择新的未获取任务信息的任务会无法正常获取任务信息。
在词达人中按此流程可正常获取,暂未发现差异的原因

考虑到一般可以一次性选择多个任务完成,很少有人会二次选择任务,而且该bug并不影响正常流程,故该bug不是必须&紧急的。

因暂未发现原因,该bug长期搁置

@Rain-shadow Rain-shadow added the wontfix This will not be worked on label Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant