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

Using HassIO, connection to the supervisor requires Authorization header #13

Closed
ssenart opened this issue Jan 4, 2025 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@ssenart
Copy link
Owner

ssenart commented Jan 4, 2025

Without Authorization header, we have the error:

An error occured while running Gazpar2HAWS: Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/gazpar2haws/__main__.py", line 76, in main
    await bridge.run()
  File "/usr/local/lib/python3.12/site-packages/gazpar2haws/bridge.py", line 57, in run
    await self._homeassistant.connect()
  File "/usr/local/lib/python3.12/site-packages/gazpar2haws/haws.py", line 26, in connect
    self._websocket = await websockets.connect(ws_url)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/client.py", line 444, in __await_impl__
    await self.connection.handshake(*self.handshake_args)
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/client.py", line 104, in handshake
    raise self.protocol.handshake_exc
  File "/usr/local/lib/python3.12/site-packages/websockets/client.py", line 336, in parse
    self.process_response(response)
  File "/usr/local/lib/python3.12/site-packages/websockets/client.py", line 150, in process_response
    raise InvalidStatus(response)
websockets.exceptions.InvalidStatus: server rejected WebSocket connection: HTTP 401
@ssenart ssenart added the bug Something isn't working label Jan 4, 2025
ssenart added a commit that referenced this issue Jan 4, 2025
[#13] Using HassIO, connection to the supervisor requires Authorizati…
@ssenart ssenart closed this as completed Jan 4, 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
Projects
None yet
Development

No branches or pull requests

1 participant