-
Notifications
You must be signed in to change notification settings - Fork 76
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
[EU] Login fails: "Invalid request body - Invalid parameter." #348
Comments
I am having the similar issue but different error, will check further.
If I initiate the login flow, I am getting the same error.
|
Hi. Hi have similar issue but I can not login in the mobile app neither (it says "Network error"). EU user. |
I have the same error with fault code below: Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.' EU user as well. Everything is on the latest version. |
If you have the same error, please just tag the original issue with a reaction. Replying |
I had to switch to the Kia Connect app on my (Android) phone since the UVO Connect app seems to be no longer working. EU User |
Just got the confirmation from KIA Netherlands that the UVO app should be replaced by the "KIA Connect" app and this probably means that the API used needs to change (for the EU?). |
Please let's keep the comment stream clean as much as possible so in case something important pops up, we don't miss it. I am working on this and trying to figure out what has changed in the login flow. Also checking other repositories if they have a solution in place.
|
I have sniffed the login call and this is currently send:
I notice the following differences: USER_AGENT_OK_HTTP: str = "okhttp/3.12.0" so not okhttp/3.12.12 Not sure if this can help, but maybe the missing/changed pieces are mandatory? |
Following along on the bluelinky side. App ID has changed and this may impact the stamps. I have a draft PR created but until the stamps are also updated in the repo it errors. So far we only have one of the new app IDs. @ZuinigeRijder are you in the discord for bluelinky? |
PRs are into the stamp repo and here. It am hearing good things about this potentially working but until merged I can't confirm. |
No, I am not on discord bluelinky. I have a discord account, zuinigerijder. In the PR I see that only the AppId of Kia is known and not for Hyundai yet. How did they find the AppId for Kia? Did the decode the App? Or looked at the API calls? |
Other one is known in chat just no pr for it yet. |
Invalid request body is caused by CGM in notify call. When changed to APNS it probably works. |
@ZuinigeRijder are you sniffing this on android or ios? I am having issues on android sniffing (ssl pinning on the app side) and I do not have access to a mac to use emulator. If it is android, can you share me how you are doing it now? |
@fuatakgun I sniff using NoxPlayer emulator on Windows 10 and Android phone emulating Samsung Galaxy S8. How to sniff For the ones who also want to be able to sniff the calls from the App, this is how I did it (do it at your own risk):
|
thanks for sharing, can you share the stamp you have used (it is supposed to safe as we all are using the shared stamps earlier) |
So this is Bluelink, not Kia. Interesting is, that the AppId is still the same:
|
stamp format seems to be inline with what we are generating... interesting, I will keep here updated |
I have it working, when I fill in the pushRegId from the sniffing.
If I change this into:
Then the calls are working! I have added .... to registration_id, because I do not know if this is specific for my account or not. |
agreed, it is specific to your account, so they are needing for a specific registration id for push notification probabaly, let me double check |
registration id is specific to your device and app installation, so google push is targeting that specific instance to send the push notifications. interestingly, bluelinky is using valid registration IDs and still failing on the login flow. |
GCM vs APNS is about google and apple push notifications system |
The only thing I did is changing the pushRegId to the value I am sniffing, the rest of the source code is the same. In combination with the recently adapted GET /neoPix/bluelinky-stamps/master/hyundai-014d2225-8495-4735-812d-2616334fd15d.v2.json call, it works now for me. Are you sure "credentials.gcm.token" (I assume the credentials are stored in GIT somehow) is exactly what needs to be provided by pushRegId? Or are there double quotes missing? |
this ID is assigned by google servers to each device/app installation combination and many brands and services are using google services to send push notifications using these IDs. So, under bluelinks using credentials.gcm.token, actual ID is being used after it was received by google servers. So, it is not static or fixed. |
I just wanted to make sure that the call:
and thereafter:
Gives the same value as is send in what what can be sniffed in the Bluelink App. So therefore I asked to try if hardcoding this value instead of getting it programmatically will be correct. Especially, because previously the pushRegId: 1 was working (don't care). As far as I can see the bluelinky source code has a constant GCMSenderId, so maybe the GCMSenderID has been changed? At least I suspect the result of the code can be that the pushRegId is not what is expected.
|
Hello, |
Update on the problem resolution. The hyundai_kia_connect_api stopped working for EU. Both for Kia and Hyundai, since 29 June 2023. I can confirm that v3.3.8 fixes the problem for EU Hyundai. My monitor tool works in combination with v3.3.8. Also Home Assistant is reported to work again with this fix for EU Hyundai. For EU Kia the problem is NOT fixed yet and there is worked on by @cdnninja and others. There needs at least a new AppId and stamp generation to be made for EU Kia. |
I confirm this works again with 3.3.8 patch. Thanks a lot for your prompt action :-) |
Release 3.3.10 fixes Kia (Hyundai was already fixed by 3.3.8). Thanks to everyone involved! |
The solution for EU Kia invalidates the EU Hyundai solution. See this issue: #354 |
Should be fixed by release 3.3.11. |
Description
Error at login:
The native mobile app still works: tested logout -> login -> force refresh.
The text was updated successfully, but these errors were encountered: