Hi,
since recently I get the following error (I had to restore a backup and then deleted the token file):
After entering the email address and trying to enter the pin, the following occurs:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: aiohttp.server
Source: custom_components/mbapi2020/oauth.py:221
Integration: MercedesME 2020 (documentation, issues)
First occurred: 08:43:56 (7 occurrences)
Last logged: 08:44:02
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 234, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/mbapi2020/config_flow.py", line 95, in async_step_pin
result = await client.oauth.request_access_token(self.data[CONF_USERNAME], pin, nonce)
File "/config/custom_components/mbapi2020/oauth.py", line 105, in request_access_token
token_info = await self._async_request("post", url, data=data, headers=headers)
File "/config/custom_components/mbapi2020/oauth.py", line 225, in _async_request
raise err
File "/config/custom_components/mbapi2020/oauth.py", line 221, in _async_request
resp.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1005, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://id.mercedes-benz.com/as/token.oauth2')
How can I solve this issue? Thanks in advance!