Git Product home page Git Product logo

hdu-library-master's Introduction

Hi there 👋

hdu-library-master's People

Contributors

albresky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hdu-library-master's Issues

又报错了,作者大大- 。-

Run python main.py
未检测到配置文件,将在config目录下创建配置文件: ./config/config.yaml
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1073, in _create
self.do_handshake()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1073, in _create
self.do_handshake()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 117, in
run()
File "main.py", line 18, in run
if api.run():
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/UserInterface.py", line 62, in run
state = self.login()
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/UserInterface.py", line 35, in login
if self.master.login():
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 118, in login
loginRes = self.session.post(url=url, data=self.userInfo)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Error: Process completed with exit code 1.

Error

Traceback (most recent call last):
File "main.py", line 108, in
run()
File "main.py", line 33, in run
preExeTime_details = getNowTime().strptime(
TypeError: strptime() argument 1 must be str, not None
Error: Process completed with exit code 1

Could you tell me how to fix it. Looking forward to your reply!

作者大大为什么会预约失败😳

Run python main.py
配置文件解析成功。
登录成功
[2023-10-21 19:30:05+08:00][checkpoint B]未到任务执行时间,还差[1795]s,等待中...
[2023-10-21 20:00:00+08:00][plan[0]=] 开始预约...
[2023-10-21 20:00:36+08:00]plan[0]=
] 预约失败

五天报错三次了😭

[2023-***-06 9:29:02+08:00][checkpoint B]未到任务执行时间,还差[858]s,等待中...
18
[2023-
-06 20:00:00+08:00][plan[0]=
] 开始预约...
19
请求失败,状态码错误,status_code=502
20
Traceback (most recent call last):
21
File "main.py", line ***7, in
22
run()
23
File "main.py", line 87, in run
24
getInfo(tryTimes + ***, plan, res)
25
File "main.py", line ***, in getInfo
26
print(f"[{getNowTime()}][try={trial}] MSG={resp['MESSAGE']} | {info['roomName']},{info['floorName']},{info['seatNum']}座,{plan['beginTime'].strftime('%Y-%m-%d %H:%M')},{plan['duration']}小时"
27
TypeError: 'NoneType' object is not subscriptable
28
Error: Process completed with exit code ***.

error(更新后出问题了)

Run python main.py
配置文件解析成功。
登录成功
[0-10-16 19:6:8+08:00][checkpoint B]未到任务执行时间,还差[00]s,等待中...
[0-10-16 0:00:00+08:00][plan[0]=
] 开始预约...
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/
.8.18/x64/lib/python
*.8/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, kwargs)
File "/opt/hostedtoolcache/Python/
.8.18/x64/lib/python**.8/json/init.py", line 57, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/
.8.18/x64/lib/python***.8/json/decoder.py", line 7, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/
.8.18/x64/lib/python***.8/json/decoder.py", line ***55, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 117, in
run()
File "main.py", line 85, in run
res = master.run(plan)
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 4, in run
res = res.json()
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python.8/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.

抢座失败

Run python main.py
配置文件解析成功。
登录成功
[2023-09-20 19:08:22+08:00][checkpoint B]未到任务执行时间,还差[3098]s,等待中...
[2023-09-20 20:00:00+08:00][plan[0]=****] 开始预约...
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 108, in
run()
File "main.py", line 81, in run
res = master.run(plan)
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 222, in run
res = self.session.post(url=url, data=data).json()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.

仓库暂停维护至 2023/10/10

  • 本人后续半个月有事耽搁,暂无瑕处理本仓库所有事务(包括但不限于BUG、大家提的 Issues)。
  • 若后续脚本工作异常,欢迎大家提 Issues,未来有空的话会进行处理。
  • 谢谢大家的支持与反馈!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.