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

[bug] [v4.6.1] 刷新课程信息失败 #145

Closed
Naturean opened this issue Oct 14, 2023 · 8 comments
Closed

[bug] [v4.6.1] 刷新课程信息失败 #145

Naturean opened this issue Oct 14, 2023 · 8 comments
Labels

Comments

@Naturean
Copy link

尝试过手动刷新、更新凭据以及重装插件,运行环境:win11、Edge浏览器
事故发生前后课程表稍有变化——网络学堂增加了“形势与政策讨论课”
这与4.6.0版本因为北大课程加入的错误原因很接近,疑似本次错误的发生原因
image

@Harry-Chen
Copy link
Owner

是否能提供一些调试信息/日志?

@Naturean
Copy link
Author

是否能提供一些调试信息/日志?

这个是吗?文科生不太懂
image

@AsakuraMizu
Copy link
Collaborator

learn-helper-v4.6.1-dev.zip

请尝试此开发版本,并提供:

  1. 开发者工具(F12)命令行的错误信息和上下文(特别是出错前的几条日志)

@AsakuraMizu AsakuraMizu changed the title 4.6.1版本刷新课程信息失败 [bug] [v4.6.1] 刷新课程信息失败 Oct 15, 2023
@Naturean
Copy link
Author

learn-helper-v4.6.1-dev.zip

请尝试此开发版本,并提供:

  1. 开发者工具(F12)命令行的错误信息和上下文(特别是出错前的几条日志)

开发版本仍然出错,以下是Learn Helper(开发版本)从开始加载到错误出现时F12控制台(Console)的全文信息(对错误信息及部分上下文进行了展开,虽然不知道有没有用)

image
image
image
image
image

@AsakuraMizu
Copy link
Collaborator

如果我没猜错的话应该是网络学堂上没有课程时间导致的

试一下这个能用吗:learn-helper-v4.6.1-timenlocation.zip

@Naturean
Copy link
Author

如果我没猜错的话应该是网络学堂上没有课程时间导致的

试一下这个能用吗:learn-helper-v4.6.1-timenlocation.zip

成功=v=

@AsakuraMizu AsakuraMizu reopened this Oct 17, 2023
@robertying
Copy link

learnX 也收到很多无法刷新课程的反馈,不知道是不是同一个问题。robertying/learnX#1049

@AsakuraMizu
Copy link
Collaborator

learnX 也收到很多无法刷新课程的反馈,不知道是不是同一个问题。robertying/learnX#1049

大概是的。

https://github.com/robertying/thu-learn-lib-no-native/blob/a93b983d8c3ea29adba6236dbe9e98a5cf46bd97/src/index.ts#L342
https://github.com/Harry-Chen/thu-learn-lib/blob/80bd9694d9d0f260198f2bf0d9143509967e1312/src/index.ts#L294

给这里加个 try-catch fallback 就可以正常工作了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants