evcc icon indicating copy to clipboard operation
evcc copied to clipboard

EU Data Act/ Drive Something Greater: SOC retrieval fails with HTTP 406 Not Acceptable

Open squirrel3000 opened this issue 1 month ago • 7 comments

Describe the bug

Since evcc v0.316.2, the state of charge (SOC) of the Cupra vehicle cannot be retrieved. The login flow completes successfully, but data retrieval fails with HTTP 406 Not Acceptable when accessing /de/en/user.html.

Suspected cause: PR #34179 "Change to health endpoint instead of calling root page" removed the GET / request that was supposed to prime the portal session. The drivesomethinggreater portal has a Web Application Firewall (WAF) or bot protection that expects this session initialization.

Steps to reproduce

  1. Configure a Cupra vehicle with drivesomethinggreater API in evcc
  2. Provide valid login credentials (email/password)
  3. Start evcc with TRACE-level logging
  4. Observe: Login succeeds but SOC retrieval fails with HTTP 406 Not Acceptable

Configuration details

Vehicle configuration:

vehicles:
  - name: Cupra
    type: drivesomethinggreater
    brand: cupra
    user: ***
    password: ***


Loadpoints configured with vehicle attached. Full redacted configuration available in debug logs.

(Passwords and sensitive credentials redacted)

Log details

Error message:

[main  ] ERROR 2026/10/09 10:17:59 creating vehicle db:29 failed: cannot create vehicle type 'template': 
cannot create vehicle type 'drivesomethinggreater': login failed: 406 Not Acceptable


Trace flow (simplified):
- ✅ POST identity.vwgroup.io/signin-service/.../login/authenticate → success
- ✅ GET identity.vwgroup.io/oidc/v1/oauth/client/callback/success → success
- ✅ Redirect to eu-data-act.drivesomethinggreater.com/login → success
- ✅ GET .../services/callbacklogin → HTTP 302 (redirect)
- ✅ GET .../de/en/user.html → HTTP 301 (redirect)
- ❌ GET .../de/en/user.html → **HTTP 406 Not Acceptable**

Server response:

<h1>Error 406 Not Acceptable</h1>
<p>Not Acceptable</p>
<p>Trace-id: 076a44f8-e8be-48b3-a0b9-e02e74c3f3f4</p>


Root cause: PR #34179 removed this code from vehicle/vw/eudataact/api.go:

// prime the portal session (best effort)
if resp, err := v.Get(BaseURL + "/"); err == nil {
    resp.Body.Close()
}


The drivesomethinggreater portal requires this session initialization. Without it, the server rejects requests with 406.

Full TRACE-level debug log: See attached (credentials redacted)

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

Linux

External automation

  • [x] 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 0.316.2

squirrel3000 avatar Oct 09 '26 08:10 squirrel3000

The 406 on /de/en/user.html looks like the same failure as #34559 (closed): the VW EU Data Act portal changed its login flow, and the log shows the old flow (/content/euda/de/en/user.html, 301, then 406). Discussion #34479 describes this. The login rewrite in fb838188 and the login serialization in 8609d05 are on master and not part of v0.316.2.

The suspected cause (#34179 removing the GET / priming request) is not confirmed. That PR does not show up in the file history of vehicle/vw/eudataact/api.go, and the current login code no longer uses that request at all.

You ticked the nightly checkbox, so could you confirm:

  • the exact nightly version or commit you tested (shown in the evcc UI under Settings, or in the first log lines)
  • the full TRACE log from that nightly run (the one in the issue is from v0.316.2 and the attachment is missing)

If the problem is gone on a current nightly, this is a duplicate of #34559.

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 09 '26 08:10 github-actions[bot]

Already fixed in nightly, short-term change on VW side.

andig avatar Oct 09 '26 09:10 andig

Yes, it seems to be related with EU-DATA-ACT. Does not work anymore since yesterday. MyCupra App connection on smartphone is working though.

"We could not load your vehicle"

Image

squirrel3000 avatar Oct 09 '26 11:10 squirrel3000

Same here, HTTP 406 Not Acceptable, however Vehicle is visible on EU Data Act Website and reachable in Audi App. Nothing changed on my side.

greky1989 avatar Oct 09 '26 12:10 greky1989

https://github.com/evcc-io/evcc/issues/34567#issuecomment-6077895005, now released

andig avatar Oct 09 '26 12:10 andig

I can confirm. Latest release v0.317.0 just installed, everything working again.

greky1989 avatar Oct 09 '26 12:10 greky1989

Yes, it's working with v0.317.0. Thank you !!!

squirrel3000 avatar Oct 09 '26 14:10 squirrel3000