Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got unhandled error from server: 412 #43

Closed
jfmennedy opened this issue Oct 14, 2021 · 3 comments
Closed

Got unhandled error from server: 412 #43

jfmennedy opened this issue Oct 14, 2021 · 3 comments

Comments

@jfmennedy
Copy link

Today skodaconnect (Skoda Octavia RS 2019 Model) stopped working with this error:

Login success!
2021-10-14 13:46:52.628594
Fetching vehicles associated with account.
ERROR:skodaconnect.connection:Got unhandled error from server: 412
DEBUG:skodaconnect.connection:Checking vehicle status_code
Traceback (most recent call last):
File "C:\Users\me\PycharmProjects\skodaconnect-1.1.6\skodaconnect\connection.py", line 683, in get_vehicles
vin = vehicle.get('vin', '')
AttributeError: 'str' object has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/me/PycharmProjects/skodaconnect-1.1.6/example/example.py", line 289, in
loop.run_until_complete(main())
File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "C:/Users/me/PycharmProjects/skodaconnect-1.1.6/example/example.py", line 130, in main
await connection.get_vehicles()
File "C:\Users\me\PycharmProjects\skodaconnect-1.1.6\skodaconnect\connection.py", line 714, in get_vehicles
raise SkodaLoginFailedException("Unable to fetch associated vehicles for account")
skodaconnect.exceptions.SkodaLoginFailedException: Unable to fetch associated vehicles for account

Process finished with exit code 1

Yesterday I had to login again with my android skoda app... hopefully they did not change anything again ...

@Farfar
Copy link
Collaborator

Farfar commented Oct 14, 2021

Today skodaconnect (Skoda Octavia RS 2019 Model) stopped working with this error:

Login success! 2021-10-14 13:46:52.628594 Fetching vehicles associated with account. ERROR:skodaconnect.connection:Got unhandled error from server: 412 DEBUG:skodaconnect.connection:Checking vehicle status_code Traceback (most recent call last): File "C:\Users\me\PycharmProjects\skodaconnect-1.1.6\skodaconnect\connection.py", line 683, in get_vehicles vin = vehicle.get('vin', '') AttributeError: 'str' object has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:/Users/me/PycharmProjects/skodaconnect-1.1.6/example/example.py", line 289, in loop.run_until_complete(main()) File "C:\Users\me\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete return future.result() File "C:/Users/me/PycharmProjects/skodaconnect-1.1.6/example/example.py", line 130, in main await connection.get_vehicles() File "C:\Users\me\PycharmProjects\skodaconnect-1.1.6\skodaconnect\connection.py", line 714, in get_vehicles raise SkodaLoginFailedException("Unable to fetch associated vehicles for account") skodaconnect.exceptions.SkodaLoginFailedException: Unable to fetch associated vehicles for account

Process finished with exit code 1

Yesterday I had to login again with my android skoda app... hopefully they did not change anything again ...

For me it's still working as it should but I have also seen the same issue reported from other users.
If you can, try to leave it be for at least an hour to see if it might be an issue with one or a couple of servers behind the load balancing that's not working.

@jfmennedy
Copy link
Author

Hi, today it was still not working. So i signed out from mobile app and re-signed in. After signing in i was ask to accept the terms of conditions again and now its working again... I´ll keep this in mind if it happens again...

@Farfar
Copy link
Collaborator

Farfar commented Oct 15, 2021

Hi, today it was still not working. So i signed out from mobile app and re-signed in. After signing in i was ask to accept the terms of conditions again and now its working again... I´ll keep this in mind if it happens again...

Good to know. I have also updated the library to catch theese issues better. It should log an error when consent is needed but continue as usual in case it's a false positive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants