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

已看课程全部清零 #130

Open
DiyaDe opened this issue Mar 25, 2024 · 6 comments
Open

已看课程全部清零 #130

DiyaDe opened this issue Mar 25, 2024 · 6 comments
Labels
bug Something isn't working 音视频/Media

Comments

@DiyaDe
Copy link

DiyaDe commented Mar 25, 2024

使用服务器运行,服务器IP地址为香港地区
系统版本 : Ubuntu 20.04.1 LTS (Focal Fossa) x86_64
python版本:Python 3.10.4
pip版本:24.0
未使用推荐的poetry管理,使用的是requirements.txt文件加pip安装库
安装库的版本如下

requests==2.31.0
qrcode==7.4.2
rich==13.7.1
pycryptodome==3.20.0
lxml==5.1.0
pyyaml==6.0.1
jsonpath-python==1.0.6
beautifulsoup4==4.12.3
ddddocr==1.4.11
numpy==1.26.4
opencv-python==4.9.0.80
dataclasses-json==0.6.4
yarl==1.9.4

出现如下bug:

  1. 已看课程全部清零
  2. 如图 1711335798211
  3. 运行日志
2024-03-25 02:08:57,724 [Main] ERROR -> 
-----*程序运行异常退出*-----
Traceback (most recent call last):
  File "/www/wwwroot/docker/main.py", line 372, in <module>
    fuck_task_worker(task_obj)
  File "/www/wwwroot/docker/main.py", line 213, in fuck_task_worker
    resolver.execute()
  File "/www/wwwroot/docker/resolver/question.py", line 418, in execute
    result = self.exam_dto.final_submit()
  File "/www/wwwroot/docker/cxapi/task_point/work.py", line 320, in final_submit
    resp.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://mooc1-api.chaoxing.com/work/addStudentWorkNew?keyboardDisplayRequiresUserAction=1&_classId=96014524&courseid=242073585&token=a7dcc2bf27262898aef1275b6defb108&workAnswerId=52811690&workid=33543357&cpi%3A=211375093&jobid=work-7d20a473457d4f0ca3b7d3645c182fbe&knowledgeid=843985063&ua=app
  1. 个人猜测是否是更新的检测机制,导致非大陆IP,或者异常时间段观看网课,导致的程序已看课程的清零,亦或者是其他检测机制
@guowang23333
Copy link
Contributor

不用想就是ip原因,你可以clash挂一条国内ip即可

@DiyaDe
Copy link
Author

DiyaDe commented Mar 26, 2024

不用想就是ip原因,你可以clash挂一条国内ip即可

好的,谢谢

@SocialSisterYi SocialSisterYi added bug Something isn't working 音视频/Media labels Mar 26, 2024
@UPman24
Copy link

UPman24 commented Jun 11, 2024

同样出现这个情况,IP在国内

@guowang23333
Copy link
Contributor

同样出现这个情况,IP在国内

确定不是网络波动么。

@guowang23333
Copy link
Contributor

同样出现这个情况,IP在国内
或者同时打开了多个程序

@UPman24
Copy link

UPman24 commented Jun 19, 2024

同样出现这个情况,IP在国内

确定不是网络波动么。

不会是网络波动,程序是运行在服务器上的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 音视频/Media
Projects
None yet
Development

No branches or pull requests

4 participants