It's me again. After my token expired, the container stopped working.
For better debugging I switched from the synology to a other docker host.
netatmo-client-influx | 05.08.2024 20:42:41 - netatmo_influx:90 - INFO:Setting loglevel to DEBUG.
netatmo-client-influx | 05.08.2024 20:42:41 - netatmo_influx:233 - INFO:Starting Netatmo Crawler...
netatmo-client-influx | Traceback (most recent call last):
netatmo-client-influx | File "/app/netatmo_influx.py", line 235, in <module>
netatmo-client-influx | authorization, refresh_token, token_expiration = get_authorization(
netatmo-client-influx | ^^^^^^^^^^^^^^^^^^
netatmo-client-influx | File "/app/netatmo_influx.py", line 110, in get_authorization
netatmo-client-influx | _result = _auth.refresh_tokens()
netatmo-client-influx | ^^^^^^^^^^^^^^^^^^^^^^
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/pyatmo/auth.py", line 95, in refresh_tokens
netatmo-client-influx | token = self._oauth.refresh_token(
netatmo-client-influx | ^^^^^^^^^^^^^^^^^^^^^^^^^^
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/requests_oauthlib/oauth2_session.py", line 452, in refresh_token
netatmo-client-influx | self.token = self._client.parse_request_body_response(r.text, scope=self.scope)
netatmo-client-influx | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 427, in parse_request_body_response
netatmo-client-influx | self.token = parse_token_response(body, scope=scope)
netatmo-client-influx | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in parse_token_response
netatmo-client-influx | validate_token_parameters(params)
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 448, in validate_token_parameters
netatmo-client-influx | raise_from_error(params.get('error'), params)
netatmo-client-influx | File "/app/.venv/lib/python3.12/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 399, in raise_from_error
netatmo-client-influx | raise cls(**kwargs)
netatmo-client-influx | oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client)
I double checked the Environment Variables for NETATMO_CLIENT_ID, NETATMO_CLIENT_SECRET and NETATMO_REFRESH_TOKEN. I've also tried to create a new app on dev.netatmo, no success.