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

Mercedes Integration - Token error #13971

Closed
Nele02 opened this issue May 18, 2024 · 10 comments · Fixed by #14093
Closed

Mercedes Integration - Token error #13971

Nele02 opened this issue May 18, 2024 · 10 comments · Fixed by #14093
Labels
bug Something isn't working

Comments

@Nele02
Copy link

Nele02 commented May 18, 2024

Describe the bug

Ich habe meinen Mercedes in das evcc eingebunden. Leider wird dieser jedoch als nicht erreichbar angezeigt.

Die folgende Fehlermeldung wird geloggt:

[mercedes] DEBUG 2024/05/18 21:12:38 identity.NewIdentity - token not valid - Add expiry
[mercedes] DEBUG 2024/05/18 21:12:38 identity.NewIdentity - token not valid - database token check started
[mercedes] TRACE 2024/05/18 21:12:38 GET https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
[main  ] ERROR 2024/05/18 21:12:38 creating vehicle ev2 failed: cannot create vehicle type 'template': cannot create vehicle type 'mercedes': cannot get vehicles: unexpected status: 400 (Bad Request)

Die Tokens wurden mit evcc token ev2 generiert und in die evcc.yaml eingefügt. Auffällig ist, dass bei dem Aufruf von evcc settings get die Region beim Eintrag des Tokens fehlt, diese ist jedoch in der Config angegeben:

[email protected]: xxx

Ich nutze die Version: evcc version 0.126.3 (cee3cf7)

Steps to reproduce

  1. Fahrzeug zur config hinzufügen.
  2. Tokens mit evcc token ev2 generieren und in die Config einfügen.
  3. evcc neustarten

Configuration details

- type: template
  template: mercedes
  user: [email protected]
  title: EQA
  icon: car
  region: EMEA
  accessToken: xxx
  refreshToken: xxx
  vin: W...
  capacity: 66.5
  phases: 3
  mode: minpv
  minCurrent: 6
  maxCurrent: 16
  name: ev2

Log details

[mercedes] DEBUG 2024/05/18 21:12:38 identity.NewIdentity - token not valid - Add expiry
[mercedes] DEBUG 2024/05/18 21:12:38 identity.NewIdentity - token not valid - database token check started
[mercedes] TRACE 2024/05/18 21:12:38 GET https://bff.emea-prod.mobilesdk.mercedes-benz.com/v2/vehicles
[main  ] ERROR 2024/05/18 21:12:38 creating vehicle ev2 failed: cannot create vehicle type 'template': cannot create vehicle type 'mercedes': cannot get vehicles: unexpected status: 400 (Bad Request)

What type of operating system are you running?

Linux

Version

evcc version 0.126.3 (cee3cf7)

@andig
Copy link
Member

andig commented May 18, 2024

Bitte mal komplette Zugangsdaten, Config und evcc.db an [email protected]

@andig andig added the question Rather clarification than issue label May 18, 2024
@aklickermann
Copy link

Bitte mal komplette Zugangsdaten, Config und evcc.db an [email protected]

Ist dabei etwas herausgekommen? Ich habe ein identisches Problem, darf ich meine Daten ebenfalls schicken?

@chiefhood
Copy link

Same here!

@matthiazzz
Copy link

I get a different error when I try to update my mercedes token on the latest nightly and EMEA region:
unexpected status: 418 (I'm a teapot)

image

Only the NORAM region provides a token, but that is not where my car is located and thus does not work...

@andig andig added bug Something isn't working and removed question Rather clarification than issue labels May 29, 2024
@andig
Copy link
Member

andig commented May 29, 2024

Can you try #14093?

@cracyfloyd
Copy link
Sponsor

I get a different error when I try to update my mercedes token on the latest nightly and EMEA region:
unexpected status: 418 (I'm a teapot)

Same here !!!!!

@matthiazzz
Copy link

Can you try #14093?

Don't have a build env setup in my LXC. I need a compiled version to check.

@UgandaNotHot
Copy link

I'm also getting the teapot error, just for the EMEA region, seems like a general problem then
Other regions just give me an empty response, as expected.

@Mac8yver
Copy link

Same here!

@deadrabbit87
Copy link
Contributor

Also with #14093 not working:

./evcc -c evcc.yaml token eqe -l trace
[main  ] INFO 2024/06/01 14:02:24 evcc 0.126.5 (aa4e26e3)
[main  ] INFO 2024/06/01 14:02:24 using config file: evcc.yaml
? Please enter your Mercedes ME user-account (e-mail or mobile) ************@gmx.de
? Choose your MB region: EMEA
[main  ] TRACE 2024/06/01 14:02:36 GET https://bff.emea-prod.mobilesdk.mercedes-benz.com/v1/config
[main  ] TRACE 2024/06/01 14:02:36 {"forceUpdate":{"status":"OK","storeUrl":"https://apps.apple.com/app/mercedes-me-2020/id1487652920"},"vehicleImagesBaseUrl":"https://eceprod2vehimages.blob.core.windows.net/fin-images"}
[main  ] TRACE 2024/06/01 14:02:36 POST https://bff.emea-prod.mobilesdk.mercedes-benz.com/v1/login
[main  ] TRACE 2024/06/01 14:02:37 {"emailOrPhoneNumber":"************@gmx.de","countryCode":"EN","nonce":"******-*****-****-****-********"}
--
{"isEmail":true,"username":"************@gmx.de"}
[main  ] FATAL 2024/06/01 14:02:37 unknown PinResponse - 200, result empty

evcc.yaml:

vehicles:
  - name: my_car
    type: template
    template: mercedes
    title: EQE
    user: *************@gmx.de
    region: EMEA
    accessToken:
    refreshToken:
    capacity: 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants