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

Login failing for Kia / EU #248

Open
mclane opened this issue Jun 30, 2023 · 17 comments
Open

Login failing for Kia / EU #248

mclane opened this issue Jun 30, 2023 · 17 comments

Comments

@mclane
Copy link

mclane commented Jun 30, 2023

Describe the bug
Login fails:

[uli@BigBox bluelinky]$ npm run debug

> [email protected] debug
> cross-env LOG_LEVEL=debug ts-node debug.ts

? What Region are you in? EU
? Which brand are you using? kia
{ region: 'EU', brand: 'kia' }
Logging in...
[2023-06-30 11:48:55] debug: EU Controller created
[2023-06-30 11:48:55] debug: Bluelinky is logging in automatically, to disable use autoLogin: false
[2023-06-30 11:48:55] debug: @EuropeController.login: Trying to sign in with EuropeanBrandAuthStrategy
[2023-06-30 11:49:04] debug: @EuropeController.login: Authenticated properly with user and password
Request failed : Error: getaddrinfo EAI_AGAIN android.clients.google.com
Retrying in 0 seconds

/home/uli/bluelinky/src/tools/common.tools.ts:19
    return new ManagedBluelinkyError(
           ^
ManagedBluelinkyError: @EuropeController.login: [400] Bad Request on [POST] https://prd.eu-ccapi.kia.com:8080/api/v1/spa/notifications/register - {"retCode":"F","resCode":"4002","resMsg":"Invalid request body - Block the UVO app id.","msgId":"xxxblockedxxx"}
    at Object.exports.manageBluelinkyError (/home/uli/bluelinky/src/tools/common.tools.ts:19:12)
    at EuropeanController.<anonymous> (/home/uli/bluelinky/src/controllers/european.controller.ts:257:13)
    at Generator.throw (<anonymous>)
    at rejected (/home/uli/bluelinky/src/controllers/european.controller.ts:25:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)


Usefull info(please complete the following information):

  • OS: Manjaro Linux
  • Bluelinky Version 8.1.0
  • Region: EU
  • Brand: kia
@fuatakgun
Copy link

Having same issue on our repository, trying to find out what had changed recently.
Hyundai-Kia-Connect/kia_uvo#660

@PierreLevres
Copy link
Contributor

PierreLevres commented Jun 30, 2023 via email

@fuatakgun
Copy link

fuatakgun commented Jun 30, 2023

Can you tell me how you are getting this id now? Android based ssl pinning is not working anymore in my setup now. We can even use the stamp from app for a very short duration

@PierreLevres
Copy link
Contributor

PierreLevres commented Jun 30, 2023 via email

@ndupont-net
Copy link

Yes, it looks like since yesterday 10AM CEST they've blocked the Kia UVO app id.
The server sends me this error message :

body: {
retCode: 'F',
resCode: '4002',
resMsg: 'Invalid request body - Block the UVO app id.',
msgId: '56908d9a-ab99-4a05-aa8b-30f46c725124'

@mclane
Copy link
Author

mclane commented Jul 1, 2023

There is a replacement app "Kia Connect"; so at least the app id needs to be changed

@ZuinigeRijder
Copy link

I have it working with the new bluelinky stamps for Hyundai Bluelink with hyundai_kia_connect_api. But I have to fill in the pushRegId which was sent by the Bluelink App (sniffing). See this post.

Sniffing on Android is more difficult, because after Android 5 SSL pinning makes it very difficult. So I used this method.

@cheick66
Copy link

cheick66 commented Jul 7, 2023

Good morning.
There is an update in Hyundai-Kia-Connect/hyundai_kia_connect_api#348 . Is it maybe possible to port it to node-red?

@PierreLevres
Copy link
Contributor

Good morning.
There is an update in Hyundai-Kia-Connect/hyundai_kia_connect_api#348 . Is it maybe possible to port it to node-red?

BlueLinky has already been updated. Since node-red-contrib-bluelinky uses bluelinky@latest, all you have to do is update your palette. Instructions on the how-to are in the readme of that repo. https://github.com/SondreNjaastad/node-red-contrib-bluelinky#what-to-do-when-bluelinky-is-updated

@xerion3800
Copy link

I've done it already regarding the instructions. But i have still Connect Problems.
image

@PierreLevres
Copy link
Contributor

I've done it already regarding the instructions. But i have still Connect Problems.
image

To get a bit further in trouble shooting:
Are you in EU?
Are you Kia or Hyundai driver?
What version is in your bluelinky node-red directory (so not the node-red-contrib-bluelinky, but bluelinky) ?
What error is in your log-file?
What happens if you run the debug.ts file from within NPM ?

@xerion3800
Copy link

Sorry for the missing Information.
Yes EU is right
Hyundai Driver

Where can in find the Log-file i Node-red for Bluelinky?

@xerion3800
Copy link

Output of debug:
It seems that the User or Password should be wrong. But I've doublechek it.

root@NodeRed:~/bluelinky# npm run debug

> [email protected] debug
> cross-env LOG_LEVEL=debug ts-node debug.ts

? What Region are you in? EU
? Which brand are you using? hyundai
{ region: 'EU', brand: 'hyundai' }
Logging in...
[2023-07-07 10:11:01] debug: EU Controller created
[2023-07-07 10:11:01] debug: Bluelinky is logging in automatically, to disable use autoLogin: false
[2023-07-07 10:11:01] debug: @EuropeController.login: Trying to sign in with EuropeanBrandAuthStrategy
[2023-07-07 10:11:03] error: @EuropeController.login: sign in with EuropeanBrandAuthStrategy failed with error Error: @EuropeanBrandAuthStrategy.login: Authentication failed with message : Invalid username or password.
[2023-07-07 10:11:03] debug: @EuropeController.login: Trying to sign in with EuropeanLegacyAuthStrategy

/root/bluelinky/src/tools/common.tools.ts:19
    return new ManagedBluelinkyError(
           ^
ManagedBluelinkyError: @EuropeController.login: [400] Bad Request on [POST] https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/signin - {"errId":"97c0cfed-5c3d-4603-99a8-7789019e66f3","errCode":"4003","errMsg":"Invalid values","errBody":{"userId":"","remainCount":4,"remainTime":300}}
    at Object.exports.manageBluelinkyError (/root/bluelinky/src/tools/common.tools.ts:19:12)
    at EuropeanController.<anonymous> (/root/bluelinky/src/controllers/european.controller.ts:256:13)
    at Generator.throw (<anonymous>)
    at rejected (/root/bluelinky/src/controllers/european.controller.ts:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@xerion3800
Copy link

Now i have test it in Bluelink App. I had unlocked me in the App and after a reconnect i got the message that my Account i temporary locked.?

@xerion3800
Copy link

After i have created i new password the login is possible in Bluelink App and Bluelinky as well :-)

@cheick66
Copy link

cheick66 commented Jul 7, 2023

Good morning.
There is an update in Hyundai-Kia-Connect/hyundai_kia_connect_api#348 . Is it maybe possible to port it to node-red?

BlueLinky has already been updated. Since node-red-contrib-bluelinky uses bluelinky@latest, all you have to do is update your palette. Instructions on the how-to are in the readme of that repo. https://github.com/SondreNjaastad/node-red-contrib-bluelinky#what-to-do-when-bluelinky-is-updated

Thanks a lot
After following the how-to instructions it's running again.
I misunderstood the solution first time, because there was no new Version of the Node-Red pallet.
node-red-contrib-bluelinky 0.0.30

@PierreLevres
Copy link
Contributor

PierreLevres commented Jul 7, 2023 via email

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

7 participants