Closed Ramonddddddd closed 2 years ago
我也有相同问题
我也是,自动运行报错,手动运行一次好了
我今天也遇到这样的问题,而且手动运行也不太行?
之前偶尔自动运行失败,手动运行一次就好了。但今天手动运行好多次都不行,一直是报这个错
之前偶尔自动运行失败,手动运行一次就好了。但今天手动运行好多次都不行,一直是报这个错
这是因为github actions环境的chrome更新了。今天已经更新了,请重新pull或fork最新的代码。 重新克隆仓库或从上游更新代码后,请务必记得修改config.ini文件和.github/workflows/main.yml文件
以及提醒一下各位,不管错误类型是什么,结尾都会是Error: Process completed with exit code 1. 真正的报错信息是stacktrace前面那一大堆,所以在这个issue下各位遇到的问题可能是不同的 [捂脸]
我又报错了...
Traceback (most recent call last): File "main.py", line 46, in <module> go('config.ini') File "main.py", line 25, in go habitation, district, street, capture, path, wechat, argconf.SENDKEY) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 298, in run fill_out(driver, campus, mail_address, phone_number, reason, detail, destination, track) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 198, in fill_out write_reason(driver, reason) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 106, in write_reason driver.find_element_by_xpath(f'//li/span[text()="{reason}"]').click() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 81, in click self._execute(Command.CLICK_ELEMENT) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 710, in _execute return self._parent.execute(command, params) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute self.error_handler.check_response(response) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <span>...</span> is not clickable at point (80, 360). Other element would receive the click: <li data-v-28db1654="" class="el-select-dropdown__item">...</li> (Session info: headless chrome=96.0.4664.45)
我又报错了...
Traceback (most recent call last): File "main.py", line 46, in <module> go('config.ini') File "main.py", line 25, in go habitation, district, street, capture, path, wechat, argconf.SENDKEY) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 298, in run fill_out(driver, campus, mail_address, phone_number, reason, detail, destination, track) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 198, in fill_out write_reason(driver, reason) File "/home/runner/work/PKUAutoSubmit_online/PKUAutoSubmit_online/func.py", line 106, in write_reason driver.find_element_by_xpath(f'//li/span[text()="{reason}"]').click() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 81, in click self._execute(Command.CLICK_ELEMENT) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 710, in _execute return self._parent.execute(command, params) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute self.error_handler.check_response(response) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <span>...</span> is not clickable at point (80, 360). Other element would receive the click: <li data-v-28db1654="" class="el-select-dropdown__item">...</li> (Session info: headless chrome=96.0.4664.45)
手动运行第二次好了
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/urllib/request.py", line 1350, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 1281, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 1327, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 1276, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 1036, in _send_output self.send(msg) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 976, in send self.connect() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/http/client.py", line 1451, in connect server_hostname=server_hostname) File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/ssl.py", line 423, in wrap_socket session=session File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/ssl.py", line 870, in _create self.do_handshake() File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/ssl.py", line 1139, 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 "main.py", line 46, in
这是报备成功了,但是微信推送没有成功?
今天也失败了,手动运行第二次好了~
今天也失败了,手动运行第二次好了~
可以更新下最新的版本,现在的新版本会重试,反复失败五次才会最终失败。 而且甚至改这一行的数字,改成重试一百次一千次都行(雾)
python3 main.py
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.11.0/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.0/x64/lib
Traceback (most recent call last):
File "/home/runner/work/-/-/main.py", line 225, in
KeyError: 'basic'
{'HeWeather6': [{'status': 'permission denied'}]}
Error: Process completed with exit code 1.
这种咋解决??
Annotations 1 error
build Process completed with exit code 1.