Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Issue authenticating with LLAT #9

Closed
artmg opened this issue Dec 16, 2018 · 1 comment
Closed

Issue authenticating with LLAT #9

artmg opened this issue Dec 16, 2018 · 1 comment

Comments

@artmg
Copy link
Contributor

artmg commented Dec 16, 2018

I am trying out scenegen, but following prevailing wisdom on Authentication I have created a Long Lived Access Token (LLAT) in my profile instead of a system-wide API-key. I get Error 111 Connection refused

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

I will try tweaking the code to use the HTTP Header Authorization: BEARER as per https://developers.home-assistant.io/docs/en/auth_api.html#example-python to see if this resolves it, otherwise I might have to use the old api-key approach for now (and slap my own wrist ;)

@artmg
Copy link
Contributor Author

artmg commented Dec 16, 2018

I have written and tested a fix for this, signed the CLA and submitted the PR. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants