-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fatal error on upgrade from v3.3.11 -> v3.4.0 #409
Comments
Seems it doesn't like your secret key value. Not that it is wrong but it doesn't like it. Few questions.
Edit: Other, not so great option is to factory reset your hub as this will give a different key but will have to be setup again. |
I left the special characters in the redaction blah+blah/blah/blah/blah - Probably useless info, but I setup the integration and copied the key in from an iPad. |
Just doing some googling on your issue. Can you make sure there is no space at the end of the key when you pasted it. |
I have the same issue. There appears to be a space at the end of the header value. |
This shounow be fixed (without editing the config files) in v3.4.1 |
On upgrading via HACS to 3.4 the following logs prevented the wiser integration from starting. Tested on current HA OS/version and previous snapshot. (I only installed it 2 days ago!)
All help much appreciated.
Logs:
Unexpected error fetching wiser (wiser-WiserHeat0575C3) data: Illegal header value b' hG--redacted-wiser-key--e+r2--redacted--a/fqMw9/Mw/u2--redacted--q'
6 December 2023, 22:28:15 – (ERROR) Drayton Wiser Integration for Home Assistant (custom integration) - message first occurred at 6 December 2023, 22:27:54 and shows up 3 times
Illegal header value b' hG--redacted-wiser-key--e+r2--redacted--a/fqMw9/Mw/u2--redacted--q'
6 December 2023, 22:28:15 – (ERROR) Drayton Wiser Integration for Home Assistant (custom integration) - message first occurred at 6 December 2023, 22:27:54 and shows up 3 times
detailed log
2023-12-06 22:27:54.486 ERROR (MainThread) [custom_components.wiser.coordinator] Illegal header value b' hG--redacted-wiser-key--e+r2--redacted--a/fqMw9/Mw/u2--redacted--q'
2023-12-06 22:27:54.486 ERROR (MainThread) [custom_components.wiser.coordinator] Unexpected error fetching wiser (wiser-WiserHeat0575C3) data: Illegal header value b' hG--redacted-wiser-key--e+r2--redacted--a/fqMw9/Mw/u2--redacted--q'
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/lib/python3.11/site-packages/httpcore/_async/http11.py", line 142, in _send_request_headers
event = h11.Request(
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/h11/_events.py", line 96, in init
self, "headers", normalize_and_validate(headers, _parsed=_parsed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/h11/_headers.py", line 164, in normalize_and_validate
validate(_field_value_re, value, "Illegal header value {!r}", value)
File "/usr/local/lib/python3.11/site-packages/h11/_util.py", line 91, in validate
raise LocalProtocolError(msg)
h11._util.LocalProtocolError: Illegal header value b' hG--redacted-wiser-key--e+r2--redacted--a/fqMw9/Mw/u2--redacted--q'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 366, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Etc..
The text was updated successfully, but these errors were encountered: