Open jiangaq opened 11 months ago
不知道为啥,最近我也很经常碰到这个问题,之前用的是正常的
浏览器打开正常吗
我也是这个错误
[2023-11-02 19:51:45,176][ERROR]connection unexpectedly closed
[2023-11-02 19:51:45,176][ERROR]Task exception was never retrieved
future: <Task finished name='Task-1583' coro=<Connection._async_send() done, defined at D:\ProgramData\anaconda3\Lib\site-packages\pyppeteer\connection.py:69> exception=InvalidStateError('invalid state')>
Traceback (most recent call last):
File "D:\ProgramData\anaconda3\Lib\site-packages\websockets\legacy\protocol.py", line 1314, in close_connection
await self.transfer_data_task
File "D:\ProgramData\anaconda3\Lib\site-packages\websockets\legacy\protocol.py", line 979, in transfer_data
await asyncio.shield(self._put_message_waiter)
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "D:\ProgramData\anaconda3\Lib\site-packages\pyppeteer\connection.py", line 73, in _async_send await self.connection.send(msg) File "D:\ProgramData\anaconda3\Lib\site-packages\websockets\legacy\protocol.py", line 635, in send await self.ensure_open() File "D:\ProgramData\anaconda3\Lib\site-packages\websockets\legacy\protocol.py", line 944, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedError: sent 1000 (OK); no close frame received
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\ProgramData\anaconda3\Lib\site-packages\pyppeteer\connection.py", line 79, in _async_send await self.dispose() File "D:\ProgramData\anaconda3\Lib\site-packages\pyppeteer\connection.py", line 170, in dispose await self._on_close() File "D:\ProgramData\anaconda3\Lib\site-packages\pyppeteer\connection.py", line 151, in _on_close cb.set_exception(_rewriteError( asyncio.exceptions.InvalidStateError: invalid state [2023-11-02 19:52:12,762][WARNING]Load chapter failed, close browser and retry [2023-11-02 19:52:12,763][INFO]terminate chrome process... [2023-11-02 19:52:12,888][INFO][WeReadWebPage] Launch url https://weread.qq.com/web/bookDetail/9ba322407159fb2d9ba76de
浏览器打开正常吗
打开正常,前9章都下得了
这种情况应该会关掉浏览器后再次打开重试的,是关闭后没有再打开吗?