Describe the bug
Setting up BMW CarData connection in EVCC fails.
The log file says that the oAuth token could not be retrieved. I already read about a similar issue #26347 which was fixed.
But the problem (or maybe another one) occurs again.
I also tried to recreate the CarData client in BWM several times, but with no success.
Thanks in advance for your help!
Steps to reproduce
- Setting up CarData in the BMW portal by generating a CarData client (with CarData Stream and access to CarData API activated)
- Use CarData client ID to add the vehicle to EVCC
- Copy authorisation code and open the BMW portal to enter the code
- The code was accepted.
- But afterwards, nothing happens within EVCC
...
Configuration details
_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=auto_vacuum(INCREMENTAL)
charger
---
db:4 {Type:template Title: Icon: Product:cFos Power Brain Solar} map[host:192.168.xxx.yyy template:cfos]
db:9 {Type:template Title: Icon: Product:cFos Power Brain Solar} map[host:192.168.xxx.yyy template:cfos]
db:12 {Type:template Title: Icon: Product:cFos Power Brain Solar} map[host:192.168.xxx.yyy template:cfos]
meter
---
db:7 {Type:template Title:PV Anlage Icon: Product:Kostal Piko} map[host:192.168.xxx.yyy template:kostal-piko-pv usage:pv]
db:13 {Type:template Title:PV-Speicher Icon: Product:Deye 3p hybrid inverter} map[baudrate:9600 comset:8N1 gridchargecurrent:140 host:192.168.xxx.yyy id:1 maxacpower:0 maxdischargecurrent:140 minsoc: modbus:tcpip port:502 template:deye-hybrid-3p usage:battery]
db:23 {Type:template Title: Icon: Product:Eastron SDM630-Modbus} map[baudrate:9600 comset:8N1 host:192.168.xxx.yyy id:1 modbus:tcpip port:502 template:eastron usage:grid]
vehicle
---
db:17 {Type:template Title: Icon: Product:Skoda} map[cache:15m capacity:85 icon:car password:***** template:skoda title:Skoda Enyaq 85 user:*****]
db:24 {Type:template Title: Icon: Product:Volkswagen EU Data Act} map[cache:15m icon:car password:***** priority:0 template:vw title:VW ID.3 Pro user:***** vin:*****]
tariff
---
db:14 {Type:template Title: Icon: Product:Fester Preis} map[price:0.09699999999999999 template:fixed]
db:15 {Type:template Title: Icon: Product:Fester Preis} map[price:0.2896 template:fixed]
db:16 {Type:template Title:PV Vorhersage West Icon: Product:Forecast.Solar} map[az:67 dec:20 interval:1h kwp:12.92 lat:***** lon:***** template:forecast-solar]
db:21 {Type:template Title:PV-Vorhersage Ost Icon: Product:Forecast.Solar} map[az:-113 dec:20 interval:1h kwp:7.48 lat:***** lon:***** template:forecast-solar]
db:22 {Type:template Title:PV-Vorhersage Flachdach Icon: Product:Forecast.Solar} map[az:67 dec:10 interval:1h kwp:4.76 lat:***** lon:***** template:forecast-solar]
loadpoint
---
db:2 {Type: Title: Icon: Product:} map[batteryBoostLimit:100 charger:db:12 circuit: defaultMode: meter: mode:pv phasesConfigured:0 planStrategy:map[continuous:false precondition:0] soc:map[estimate:true poll:map[interval:3.6e+12 mode:charging]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:Wallbox 1 ui:map[maxTemp:0 minTemp:0] vehicle:]
db:5 {Type: Title: Icon: Product:} map[charger:db:4 circuit: defaultMode: meter: mode:pv phasesConfigured:0 planStrategy:map[continuous:false precondition:0] soc:map[estimate:true poll:map[interval:3.6e+12 mode:charging]] thresholds:map[disable:map[delay:1.8e+11 threshold:0] enable:map[delay:6e+10 threshold:0]] title:Wallbox 2 ui:map[maxTemp:0 minTemp:0] vehicle:]
Log details
2026-07-02T12:33:39.574908100Z [cardata] ERROR 2026/07/02 14:33:39 error retrieving token: oauth2: cannot fetch token: 500 Internal Server Error
2026-07-02T12:33:39.575030100Z Response: {"fault":{"faultstring":"Invalid Access Token","detail":{"errorcode":"keymanagement.service.invalid_access_token"}}}
What type of operating system or environment does evcc run on?
Docker container
External automation
Nightly build
Version
0.310.1
Describe the bug
Setting up BMW CarData connection in EVCC fails.
The log file says that the oAuth token could not be retrieved. I already read about a similar issue #26347 which was fixed.
But the problem (or maybe another one) occurs again.
I also tried to recreate the CarData client in BWM several times, but with no success.
Thanks in advance for your help!
Steps to reproduce
...
Configuration details
Log details
What type of operating system or environment does evcc run on?
Docker container
External automation
Nightly build
Version
0.310.1