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

Exception raised on oauth setup completion #19

Open
NeonDaniel opened this issue May 11, 2023 · 3 comments
Open

Exception raised on oauth setup completion #19

NeonDaniel opened this issue May 11, 2023 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@NeonDaniel
Copy link
Member

Upon completing oauth via QR code, the following exception is raised; the QR code is dismissed from the GUI and the default screen with a "Connect Instance" button is displayed

2023-05-11 09:06:11.145 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:_connect:63 - ERROR - sent 1000 (OK); then received 1000 (OK)
Traceback (most recent call last):
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 57, in _connect
    await self.authenticate()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 38, in authenticate
    await self.listen()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 74, in listen
    message = await self.websocket.recv()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 568, in recv
    await self.ensure_open()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)
2023-05-11 09:06:11.153 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:run:245 - INFO - self.loop.is_running=False
2023-05-11 09:06:11.499 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:_connect:63 - ERROR - sent 1000 (OK); then received 1000 (OK)
Traceback (most recent call last):
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 57, in _connect
    await self.authenticate()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 38, in authenticate
    await self.listen()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 74, in listen
    message = await self.websocket.recv()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 568, in recv
    await self.ensure_open()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)
2023-05-11 09:06:11.502 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:run:245 - INFO - self.loop.is_running=False
2023-05-11 09:07:17.272 - enclosure - ovos_bus_client.session:reset_default_session:171 - INFO - New Default Session Start: 176da049-2301-4807-80cb-4e7dc3d727c6
2023-05-11 09:07:17.594 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:_connect:63 - ERROR - sent 1000 (OK); then received 1000 (OK)
Traceback (most recent call last):
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 57, in _connect
    await self.authenticate()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 38, in authenticate
    await self.listen()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 74, in listen
    message = await self.websocket.recv()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 568, in recv
    await self.ensure_open()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 953, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)
2023-05-11 09:07:17.596 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:run:245 - INFO - self.loop.is_running=False
2023-05-11 09:07:17.935 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:_connect:63 - ERROR - sent 1000 (OK); then received 1000 (OK)
Traceback (most recent call last):
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 57, in _connect
    await self.authenticate()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 38, in authenticate
    await self.listen()
  File "/home/neon/venv/lib/python3.7/site-packages/ovos_PHAL_plugin_homeassistant/logic/socketclient.py", line 74, in listen
    message = await self.websocket.recv()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 568, in recv
    await self.ensure_open()
  File "/home/neon/venv/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 944, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)
2023-05-11 09:07:17.939 - enclosure - ovos_PHAL_plugin_homeassistant.logic.socketclient:run:245 - INFO - self.loop.is_running=False
@NeonDaniel NeonDaniel added the bug Something isn't working label May 11, 2023
@NeonDaniel
Copy link
Member Author

Noticed this again but waited and the dashboard did eventually render (no additional logs). After selecting Scenes, that dashboard did eventually come up too.

@mikejgray
Copy link
Collaborator

We got another user report of this issue, which I created #46 for before realizing they were the same. Not exactly sure what the problem is but it's definitely related to oauth setup.

@mikejgray
Copy link
Collaborator

I lack the Qt ability to do much about this, and the Qt5 GUI will eventually deprecate. Help is welcome from Qt devs.

@mikejgray mikejgray added the wontfix This will not be worked on label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants