Skip to content

Hyundai - refresh token do not work #29400

@Startertrek

Description

@Startertrek

Describe the bug

The page https://github.com/evcc-io/evcc/wiki/Hyundai-Kia:-Refresh-Token describes how to get / refresh the Hyundai Bluelink token.
The skript works until the step login but then results in

Image

Some months ago I generated my first token, at this point the process was working fine. Now I need the first update token and fails.

Steps to reproduce

1.follow the steps in the description https://github.com/evcc-io/evcc/wiki/Hyundai-Kia:-Refresh-Token
2.using Windows preparation, Run the script for Windows / Hyundai
3.login + capcha in chrome
4.check the console output of powershell
...

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: <xxxxxxx>

interval: 30s # control cycle interval

sponsortoken: <xxxxxx>

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true


orangepi@orangepi3b:~$ evcc dump --cfg
[main  ] INFO 2026/04/25 09:29:57 using config file: /etc/evcc.yaml
[main  ] INFO 2026/04/25 09:29:57 using sqlite database: /home/orangepi/.evcc/evcc.db?_pragma=busy_timeout(5000)
[eebus ] INFO 2026/04/25 09:29:57 Local SKI: 2ef173b47b8ff070e2f02ec3990f26aa1fe32d0d
[eebus ] ERROR 2026/04/25 09:29:57 websocket server error: listen tcp :4712: bind: address already in use

Version: `0.305.1`

Log details

Log in powershell (personal data replaced with <xxxx>)

==================================================
Please log in manually in the browser window.
The script will wait for you to complete the login...
==================================================

✅ Login successful! Element found.
Redirecting to: https://idpconnect-eu.hyundai.com/auth/api/v2/user/oauth2/authorize?response_type=code&client_id=<xxxx>&redirect_uri=https://prd.eu-ccapi.hyundai.com:8080/api/v1/user/oauth2/token&lang=de&state=ccsp
 - [1] Waiting for redirect URLwith code
 - [2] Waiting for redirect URLwith code
 - [3] Waiting for redirect URLwith code
 - [4] Waiting for redirect URLwith code
 - [5] Waiting for redirect URLwith code
 - [6] Waiting for redirect URLwith code
 - [7] Waiting for redirect URLwith code
 - [8] Waiting for redirect URLwith code
 - [9] Waiting for redirect URLwith code
 - [10] Waiting for redirect URLwith code

❌ Failed to get redirected to correct URL, got https://idpconnect-eu.hyundai.com/error?status=400&error=Bad+Request&error_description=Bad+Request.+It+was+classified+as+an+abusing+request+and+blocked.+client_id+%<xxxx>&loginUrl=&ui_locales=en-US instead
An unexpected error occurred: 'NoneType' object has no attribute 'group'

What type of operating system or environment does evcc run on?

Linux

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.305.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    vehiclesSpecific vehicle support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions