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

wssの接続がcloseされる問題 #62

Open
nezumi0627 opened this issue Feb 25, 2025 · 1 comment
Open

wssの接続がcloseされる問題 #62

nezumi0627 opened this issue Feb 25, 2025 · 1 comment

Comments

@nezumi0627
Copy link
Contributor

  • Exception Group Traceback (most recent call last):
    | File "c:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot\main.py", line 181, in
    | main()
    | ~~~~^^
    | File "c:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot\main.py", line 177, in main
    | tracer.trace()
    | ~~~~~~~~~~~~^^
    | File "C:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot.venv\Lib\site-packages\line_works\tracer.py", line 8, in trace
    | asyncio.run(self.connect())
    | ~~~~~~~~~~~^^^^^^^^^^^^^^^^
    | File "C:\Users\ren11\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 194, in run
    | return runner.run(main)
    | ~~~~~~~~~~^^^^^^
    | File "C:\Users\ren11\AppData\Local\Programs\Python\Python313\Lib\asyncio\runners.py", line 118, in run
    | return self._loop.run_until_complete(task)
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
    | File "C:\Users\ren11\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 720, in run_until_complete
    | return future.result()
    | ~~~~~~~~~~~~~^^
    | File "C:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot.venv\Lib\site-packages\line_works\mqtt\client.py", line 54, in connect
    | async with asyncio.TaskGroup() as tg:
    | ~~~~~~~~~~~~~~~~~^^
    | File "C:\Users\ren11\AppData\Local\Programs\Python\Python313\Lib\asyncio\taskgroups.py", line 71, in aexit
    | return await self._aexit(et, exc)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "C:\Users\ren11\AppData\Local\Programs\Python\Python313\Lib\asyncio\taskgroups.py", line 173, in _aexit
    | raise BaseExceptionGroup(
    | ...<2 lines>...
    | ) from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "C:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot.venv\Lib\site-packages\line_works\mqtt\client.py", line 65, in __listen
    | message = await self._ws.recv()
    | ^^^^^^^^^^^^^^^^^^^^^
    | File "C:\Users\ren11\OneDrive\デスクトップ\github-projects\nezu-works-bot.venv\Lib\site-packages\websockets\asyncio\connection.py", line 313, in recv
    | raise self.protocol.close_exc from self.recv_exc
    | websockets.exceptions.ConnectionClosedError: no close frame received or sent
    +------------------------------------
    PS C:\Users\ren11\OneDrive\デスクトップ\github-projects\line-works-sdk>
@nezumi0627
Copy link
Contributor Author

nezumi0627 commented Feb 25, 2025

現在closeされることは無くなったが(以前現象が確認できたため)、再度あった場合に対応できるようにする

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

1 participant