Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
413 stars 85 forks source link

Keep getting unknown error when trying to login to my Kia Account #688

Closed Jaw0lf closed 1 year ago

Jaw0lf commented 1 year ago

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Region and Brand of car GB Kia E Niro

Version of the integration Tried 2.10.6 2.10.5 and 2.10.4 all behaved the same. Currently back at 2.10.5 as saw other Kia users had success.

Describe the bug A clear and concise description of what the bug is. I was working fully antil a week ago, tried to fix yestewrday and found update available, so moved to 2.10.6. Unknown Error after failing to login. I have tried with email and password as per my app log in. Also logged out and back in to my Kia Connect app, to confirm details work. Have also used my code in conjunction with email and password.

Debug logs if an error occurred This error originated from a custom integration.

Logger: custom_components.kia_uvo.config_flow Source: custom_components/kia_uvo/config_flow.py:63 Integration: Kia Uvo / Hyundai Bluelink (documentation, issues) First occurred: 12:29:28 (5 occurrences) Last logged: 17:12:27

Unexpected exception Traceback (most recent call last): File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user await validate_input(self.hass, user_input) File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input token: Token = await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 205, in login stamp = self._get_stamp() ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1086, in _get_stamp return self._get_stamp() ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1086, in _get_stamp return self._get_stamp() ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1086, in _get_stamp return self._get_stamp() ^^^^^^^^^^^^^^^^^ [Previous line repeated 969 more times] File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1071, in _get_stamp self.stamps = requests.get(self.stamps_url).json() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 454, in send conn = self.get_connection(request.url, proxies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 356, in get_connection conn = self.poolmanager.connection_from_url(url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 299, in connection_from_url return self.connection_from_host( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 246, in connection_from_host return self.connection_from_context(request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 261, in connection_from_context return self.connection_from_pool_key(pool_key, request_context=request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 282, in connection_from_pool_key pool = self._new_pool(scheme, host, port, request_context=request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/poolmanager.py", line 214, in _new_pool return pool_cls(host, port, request_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 949, in init HTTPConnectionPool.init( File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 191, in init ConnectionPool.init(self, host, port) File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 86, in init self.host = _normalize_host(host, scheme=self.scheme) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1111, in _normalize_host host = normalize_host(host, scheme) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/util/url.py", line 300, in _normalize_host b".".join([_idna_encode(label) for label in host.split(".")]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/util/url.py", line 300, in b".".join([_idna_encode(label) for label in host.split(".")]) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/util/url.py", line 306, in _idna_encode if name and any(ord(x) >= 128 for x in name): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/util/url.py", line 306, in if name and any(ord(x) >= 128 for x in name): ^^^^^^ RecursionError: maximum recursion depth exceeded while calling a Python object

Also

This error originated from a custom integration.

Logger: hyundai_kia_connect_api.KiaUvoApiEU Source: custom_components/kia_uvo/config_flow.py:58 Integration: Kia Uvo / Hyundai Bluelink (documentation, issues) First occurred: 12:27:27 (5 occurrences) Last logged: 17:10:33

Unsupported language: en-GB, fallback to en

To Reproduce Re install Kia Uvo and try to log in.

Expected behavior I should log in to my account and have access to my Kia

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

Jaw0lf commented 1 year ago

To confirm, I have uninstalled previous app, restarted, added 2.10.5, restarted and error occurs

erikgeurts commented 1 year ago

duplicate of #686?

fuatakgun commented 1 year ago

Follow #686

Jaw0lf commented 1 year ago

It seems my account must have been arguing, as I left it over 24 hours and just tried. All now working, thanks for all your hard work!