You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great work on this project.
I've been trying to get this to work for myself but after configuring everything, when i try any of the possible actions i get the following error:
(eon-api) root@homeassistant:~/eon-api# python3 read_invoices.py
Traceback (most recent call last):
File "/root/eon-api/read_invoices.py", line 3, in
eon = EON('MY_EMAIL', 'MY_PASSWORD')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/eon/client.py", line 24, in init
self._token = self.login(username, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/eon/client.py", line 43, in login
return response.headers['XAuth']
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/requests/structures.py", line 52, in getitem
return self._store[key.lower()][1]
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'xauth'
Is there something that i am doing wrong or is this no longer working due to some changes made by e.on?
Thanks!
The text was updated successfully, but these errors were encountered:
The examples are pretty straight forward and I see you only initializing the client in the snippet you provided, that should be fine.
I'm no longer using this code for quite some time so I don't know about the changes to eon's api.
It could very well be that they've made some breaking changes in the past 6 years :).
That being said I won't invest the time to debug the error.
If you do and would like to share your results, PRs are welcome.
Hello.
Thanks for the great work on this project.
I've been trying to get this to work for myself but after configuring everything, when i try any of the possible actions i get the following error:
(eon-api) root@homeassistant:~/eon-api# python3 read_invoices.py
Traceback (most recent call last):
File "/root/eon-api/read_invoices.py", line 3, in
eon = EON('MY_EMAIL', 'MY_PASSWORD')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/eon/client.py", line 24, in init
self._token = self.login(username, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/eon/client.py", line 43, in login
return response.headers['XAuth']
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/root/eon-api/lib/python3.11/site-packages/requests/structures.py", line 52, in getitem
return self._store[key.lower()][1]
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'xauth'
Is there something that i am doing wrong or is this no longer working due to some changes made by e.on?
Thanks!
The text was updated successfully, but these errors were encountered: