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

Unable to parse HTML content #7

Closed
Swhuagger opened this issue Mar 10, 2021 · 4 comments
Closed

Unable to parse HTML content #7

Swhuagger opened this issue Mar 10, 2021 · 4 comments

Comments

@Swhuagger
Copy link

编程0基础,具体问题如下:
[ERROR] loop.error, 23:48:57, [104] unable to parse HTML content [WARNING] loop, 23:48:57, UnexceptedHTMLFormat encountered

@Mzhhh
Copy link
Owner

Mzhhh commented Mar 11, 2021

这个问题与原 repo 下的 issue#56 应该是一样的,我本人没有遇到过。根据原作者的分析:

现在报这个错误是因为选课网改了 HTML 的结构,导致会话超时的错误没有被正确捕获

建议您尝试将 config.ini 中的 elective_client_max_life 调小一点(如设为 200),预计下一次 commit 时会修改这个问题。

@Swhuagger
Copy link
Author

已经尝试把 elective_client_max_life 调到200, 依然出现通用的现象。同时发现这问题只有在想选的课在第一页的时候才会出现

@Mzhhh
Copy link
Owner

Mzhhh commented Mar 11, 2021

已经尝试把 elective_client_max_life 调到200, 依然出现通用的现象。同时发现这问题只有在想选的课在第一页的时候才会出现

您现在用的是最新 commit 的版本吗?我在最新版本已经将按照原 repo 的 issue 下的方案进行了修改,如果最新版本还出现这个问题,麻烦您提供一下 log/web/ 下最新的一份 html。

@Swhuagger
Copy link
Author

嗯嗯,最新版本没有问题了~

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