2021-04-20 08:12:19 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2021-04-20 08:12:19 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth code using credentials 2021-04-20 08:12:19 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth token from https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=ZjFjYzE0NjZhYjhiYzUwYzVjODE0MjQxMjNlMzc2Zjk3ZGU2NzRmYWI4Y2MwZGNiZmM0OTdjMjU2YjJkNmFiMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=bkfbIgYGfQRAh_Yeydbk0noJQ_shCL0TDC-mLJJHbkT6E5yGHlAlLfM9BpEQt9bQ6GwTY4K2OJT7lKUjLkcNSQ 2021-04-20 08:12:19 DEBUG (MainThread) [teslajsonpy.connection] POST: https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=ZjFjYzE0NjZhYjhiYzUwYzVjODE0MjQxMjNlMzc2Zjk3ZGU2NzRmYWI4Y2MwZGNiZmM0OTdjMjU2YjJkNmFiMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=bkfbIgYGfQRAh_Yeydbk0noJQ_shCL0TDC-mLJJHbkT6E5yGHlAlLfM9BpEQt9bQ6GwTY4K2OJT7lKUjLkcNSQ with returned 403:Forbidden with response 2021-04-20 08:12:19 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, 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/security_filter.py", line 56, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 71, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, 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 107, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 156, 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 214, in _async_handle_step result: dict = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/tesla/config_flow.py", line 57, in async_step_user info = await validate_input(self.hass, user_input) File "/usr/src/homeassistant/homeassistant/components/tesla/config_flow.py", line 159, in validate_input (config[CONF_TOKEN], config[CONF_ACCESS_TOKEN]) = await controller.connect( File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 268, in connect cars = await self.get_vehicles() File "/usr/local/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry ret = await target(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 357, in get_vehicles return (await self.__connection.get("vehicles"))["response"] File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 78, in get return await self.post(command, "get", None) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 96, in post self.code = await self.get_authorization_code( File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 372, in get_authorization_code code_url = URL(resp.history[-1].url) IndexError: tuple index out of range