I am getting following error in log when trying to setup edgeos,
I have 8443 as my https port instead of default 443. not sure if that is issue here.
2020-08-16 01:04:15 ERROR (MainThread) [custom_components.edgeos.clients.web_api] Failed to login, Error: Cannot connect to host https:443 ssl:False [Try again], Line: 109
2020-08-16 01:04:15 WARNING (MainThread) [custom_components.edgeos.managers.config_flow_manager] Failed to login EdgeOS EdgeOS due to HTTP Status Code: 404
2020-08-16 01:04:15 WARNING (MainThread) [custom_components.edgeos.config_flow] Cannot complete login
2020-08-16 01:04:15 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/cryptography/fernet.py", line 87, in _get_unverified_token_data
data = base64.urlsafe_b64decode(token)
File "/usr/local/lib/python3.8/base64.py", line 133, in urlsafe_b64decode
return b64decode(s)
File "/usr/local/lib/python3.8/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/edgeos/config_flow.py", line 62, in async_step_user
schema = await self._config_flow.get_default_data(new_user_input)
File "/config/custom_components/edgeos/managers/config_flow_manager.py", line 157, in get_default_data
config_data = await self._config_manager.get_basic_data(user_input)
File "/config/custom_components/edgeos/managers/configuration_manager.py", line 59, in get_basic_data
result.password_clear_text = await self.password_manager.decrypt(
File "/config/custom_components/edgeos/managers/password_manager.py", line 56, in decrypt
decrypted = self.crypto.decrypt(data.encode()).decode()
File "/usr/local/lib/python3.8/site-packages/cryptography/fernet.py", line 74, in decrypt
timestamp, data = Fernet._get_unverified_token_data(token)
File "/usr/local/lib/python3.8/site-packages/cryptography/fernet.py", line 89, in _get_unverified_token_data
raise InvalidToken
cryptography.fernet.InvalidToken