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

Error Requesting Data, Please reauthenticate #19

Closed
OlavRab opened this issue May 18, 2021 · 5 comments
Closed

Error Requesting Data, Please reauthenticate #19

OlavRab opened this issue May 18, 2021 · 5 comments

Comments

@OlavRab
Copy link

OlavRab commented May 18, 2021

I just tried to set up the MBAPI for my 2019 CLA Shooting brake.
Installing and receiving the TAN-Code all worked perfectly fine, I got the message that the MBAPI was successfully set up.
But then the message appeared to reauthenticate. Am I doing something wrong?

afbeelding

afbeelding

afbeelding

Latest reads from the log:
2021-05-18 18:44:58 ERROR (MainThread) [custom_components.mbapi2020.oauth] Error requesting data from https://id.mercedes-benz.com/as/token.oauth2: 400, message='Bad Request', url=URL('https://id.mercedes-benz.com/as/token.oauth2') 2021-05-18 18:44:58 ERROR (MainThread) [custom_components.mbapi2020] Authentication failed. Please reauthenticate. 2021-05-18 18:46:00 ERROR (MainThread) [custom_components.mbapi2020.oauth] Error requesting data from https://id.mercedes-benz.com/as/token.oauth2: 400, message='Bad Request', url=URL('https://id.mercedes-benz.com/as/token.oauth2') 2021-05-18 18:46:00 ERROR (MainThread) [custom_components.mbapi2020] Authentication failed. Please reauthenticate. 2021-05-18 18:52:56 ERROR (MainThread) [homeassistant.components.system_health] Error fetching info Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 69, in get_integration_info data = await registration.info_callback(hass) File "/config/custom_components/mbapi2020/system_health.py", line 21, in system_health_info client = hass.data[DOMAIN] KeyError: 'mbapi2020'

@ReneNulschDE
Copy link
Owner

Thanks for reporting.

Do you see any entities or sensors for your car(s)?
In which country do you live?
Are their any other errors?
Do you have any special signs in your login email address?

@OlavRab
Copy link
Author

OlavRab commented May 22, 2021

Hi,

I cannot see any sensors of my car.
I live in the Netherlands
This is the only error, the request to reauthenticate
My email address has dots : olav.van.etc@gmail.com

@ReneNulschDE
Copy link
Owner

can you please

  • delete the file .mercedesme-token-cache in your HA-config folder.
  • Remove the MB integration from the integrations-page.
  • Add the integration again

@PixelPusher247
Copy link

Hi,

I'm getting the same error after restoring from a snapshot. I have tried deleting file .mercedesme-token-cache, removing the integration, restarting HA and adding the integration again and I get the same error.

image

@PixelPusher247
Copy link

P.S.: I was able to get it to work by changing the Time Zone of Home Assistant to Etc/GMT, restarting and trying to authenticate again. After that I reverted to my Time Zone and everything is working. I read about this authentication issue for some other integration and it did the trick here too. Maybe this helps someone else.

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

3 participants