Farfar / homeassistant-seatconnect

Seat Connect - A home assistant plugin to add integration with your car
Apache License 2.0
61 stars 14 forks source link

seatconnect.exceptions.SeatAuthenticationException: Invalid username #17

Closed Pulpyyyy closed 2 years ago

Pulpyyyy commented 2 years ago

Hello,

Am I the only one getting login error since a few days ? Integration was working fine but suddenly it stops

2022-01-29 19:32:59 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration seatconnect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-29 19:33:11 INFO (MainThread) [seatconnect.connection] Init Seat Connect library, version 1.1.3
2022-01-29 19:33:11 DEBUG (MainThread) [seatconnect.connection] Using service https://msg.volkswagen.de
2022-01-29 19:33:11 INFO (MainThread) [seatconnect.connection] Initiating new login
2022-01-29 19:33:11 DEBUG (MainThread) [seatconnect.connection] Starting authorization process for client seat
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Get authorization page: "https://identity.vwgroup.io/oidc/v1/authorize"
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Got authorization endpoint: "https://identity.vwgroup.io/signin-service/v1/signin/50f215acxxxxxxxxxxxxxxxxxxxxxx"
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Got redirect to signin-service
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Extracted form attribute: ('_csrf', 'a0710afb-xxxxxxxxxxxxxxxxxx')
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Extracted form attribute: ('relayState', '32b7b7a976xxxxxxxxxxxxxxxxxxxxxx')
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Extracted form attribute: ('hmac', '369362204541xxxxxxxxxxxxxxx')
2022-01-29 19:33:13 DEBUG (MainThread) [seatconnect.connection] Start authorization for user mail@mail.com
2022-01-29 19:33:14 WARNING (MainThread) [seatconnect.connection] Invalid credentials or invalid configuration. Make sure you have entered the correct credentials
2022-01-29 19:33:14 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry VSxxxxxxxxxxxxxxxxxxxxx for seatconnect
  File "/usr/local/lib/python3.9/site-packages/seatconnect/connection.py", line 358, in _signin_service
  File "/config/custom_components/seatconnect/__init__.py", line 140, in async_setup_entry
  File "/config/custom_components/seatconnect/__init__.py", line 765, in async_login
  File "/usr/local/lib/python3.9/site-packages/seatconnect/connection.py", line 136, in doLogin
  File "/usr/local/lib/python3.9/site-packages/seatconnect/connection.py", line 207, in _authorize
  File "/usr/local/lib/python3.9/site-packages/seatconnect/connection.py", line 367, in _signin_service
seatconnect.exceptions.SeatAuthenticationException: Invalid username

Obviously i checked login/password and android app is OK with the same credentials

Regards

SrOne commented 2 years ago

I get same issue today also. it not will accept any of my two working account. I also reinstall the integration but still get it. This error originated from a custom integration.

2022-01-29 22:14:43 DEBUG (MainThread) [custom_components.seatconnect.config_flow] Creating connection to Seat Connect 2022-01-29 22:14:43 INFO (MainThread) [seatconnect.connection] Init Seat Connect library, version 1.1.3 2022-01-29 22:14:43 DEBUG (MainThread) [seatconnect.connection] Using service https://msg.volkswagen.de 2022-01-29 22:14:43 INFO (MainThread) [seatconnect.connection] Initiating new login 2022-01-29 22:14:43 DEBUG (MainThread) [seatconnect.connection] Starting authorization process for client seat 2022-01-29 22:14:44 DEBUG (MainThread) [seatconnect.connection] Got redirect to signin-service 2022-01-29 22:14:44 DEBUG (MainThread) [seatconnect.connection] Start authorization for user deleted@gmail.com 2022-01-29 22:14:44 WARNING (MainThread) [seatconnect.connection] Invalid credentials or invalid configuration. Make sure you have entered the correct credentials 2022-01-29 22:14:44 ERROR (MainThread) [custom_components.seatconnect.config_flow] Login failed with error: Invalid username

This error originated from a custom integration.

Logger: custom_components.seatconnect.config_flow Source: custom_components/seatconnect/config_flow.py:98 Integration: Seat Connect (documentation, issues) First occurred: 12:14:44 AM (1 occurrences) Last logged: 12:14:44 AM

Login failed with error: Invalid username

dkmedic commented 2 years ago

I can't loggin either. It suddenly stopped af fwe days ago. Hope it will be fixed.

Pulpyyyy commented 2 years ago

Let's hope fix will by merged soon https://github.com/robinostlund/volkswagencarnet/pull/138

Farfar commented 2 years ago

Let's hope fix will by merged soon robinostlund/volkswagencarnet#138

It won't. My fix from Skoda connect is however in latest commit and will be uploaded shortly.

tomato20 commented 2 years ago

Just updated and can log in again. Thank you for a quick fix!

pocasolta commented 2 years ago

thanks, Farfar!