-
Notifications
You must be signed in to change notification settings - Fork 0
Unexpected exception error when trying to log into Lifetime #2
Description
Just after installing the lifetime hacs plugin and I try to enter my username/password(verified on the lifetime website)
I get these 2 errors:
Error 1:
Logger: custom_components.lifetime_fitness.config_flow
Source: custom_components/lifetime_fitness/config_flow.py:96
integration: lifetime_fitness (documentation, issues)
First occurred: 11:39:12 PM (1 occurrences)
Last logged: 11:39:12 PM
Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/lifetime_fitness/api.py", line 79, in authenticate
response_json = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 80, in json
return await super().json(*args, loads=loads, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1243, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 406, message='Attempt to decode JSON with unexpected mimetype: ', url='https://api.lifetimefitness.com/auth/v2/login'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/lifetime_fitness/config_flow.py", line 96, in async_step_user
info = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/lifetime_fitness/config_flow.py", line 44, in validate_input
await api_client.authenticate()
File "/config/custom_components/lifetime_fitness/api.py", line 85, in authenticate
raise ApiUnknownAuthError
custom_components.lifetime_fitness.api.ApiUnknownAuthError
Error 2:
Logger: custom_components.lifetime_fitness.api
Source: custom_components/lifetime_fitness/api.py:84
integration: lifetime_fitness (documentation, issues)
First occurred: 11:39:12 PM (1 occurrences)
Last logged: 11:39:12 PM
Received unknown status code in authentication response: 406