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

Max retries exceeded with url,Connection to elective.pku.edu.cn timed out #43

Open
oopsg1thub opened this issue Sep 21, 2020 · 4 comments

Comments

@oopsg1thub
Copy link

Check List

Version / Environment

System infomation: [ ] ( Windows10 64bit ... )
Python version: [ ] ( run python3 --version )
AutoElective version: [ ] ( run python3 main.py --version )

Config

除了学号/密码外的其他配置

Issue Description

What

遇到的问题

开启一段时间后,逐渐出现Max retries exceeded with url...错误,猜测requests高频率访问访问同一个ip而出现。出现后浏览器都打不开elective,其他网站正常。只能断开WIFI断开its所有连接并重连(猜测ip被禁,需要重连更换)。不知是否个案。

Console Log

[ERROR] loop.error, 20:39:47, HTTPSConnectionPool(host='elective.pku.edu.cn', port=443): Max retries exceeded with url: /elective2008/edu/pku/stu/elective/controller/supplement/SupplyCancel.do (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000002E282DE68E0>, 'Connection to elective.pku.edu.cn timed out. (connect timeout=20.0)'))

其中,重复出现的错误信息一般“0x0...”部分不同

必要的终端输出信息

Reproduce

如有必要,提供复现的步骤

@zhongxinghong
Copy link
Owner

现在还会遇到吗? 用浏览器直接访问有问题? 有没有用代理之类的?

@oopsg1thub
Copy link
Author

oopsg1thub commented Sep 22, 2020 via email

@zhongxinghong
Copy link
Owner

这其实我有察觉到,选课网近期有 IP 级别的限流,好像还是在应用层以下的限流,至于是否只对校内 IP 限流我目前还不是很清楚,但是更换一下 IP 似乎就可以继续用了

@oopsg1thub
Copy link
Author

oopsg1thub commented Sep 22, 2020 via email

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