Aujourd’hui, nouvelle perte de connexion avec ma tondeuse qui n’est pas revenue :
Si ça peut aider à comprendre, ci-dessou mon log :
[2022-06-13 14:25:04]INFO : Syncing known devices with jeedom
[2022-06-13 16:21:24]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 16:21:24]INFO : Restarting websocket...
[2022-06-13 16:21:25]INFO : Websocket connected
[2022-06-13 16:25:04]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 16:25:04]INFO : Restarting websocket...
[2022-06-13 16:25:04]INFO : Websocket connected
[2022-06-13 18:21:25]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 18:21:25]INFO : Restarting websocket...
[2022-06-13 18:21:26]INFO : Websocket connected
[2022-06-13 18:25:04]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 18:25:04]INFO : Restarting websocket...
[2022-06-13 18:25:05]INFO : Websocket connected
[2022-06-13 20:21:26]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 20:21:26]INFO : Restarting websocket...
[2022-06-13 20:21:27]INFO : Websocket connected
[2022-06-13 20:25:05]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 20:25:05]INFO : Restarting websocket...
[2022-06-13 20:25:06]INFO : Websocket connected
[2022-06-13 22:21:27]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 22:21:27]INFO : Restarting websocket...
[2022-06-13 22:21:27]INFO : Websocket connected
[2022-06-13 22:25:06]INFO : Websocket connection close: (1001)-Going away
[2022-06-13 22:25:06]INFO : Restarting websocket...
[2022-06-13 22:25:06]INFO : Websocket connected
[2022-06-14 00:21:27]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 00:21:27]INFO : Restarting websocket...
[2022-06-14 00:21:28]INFO : Websocket connected
[2022-06-14 00:25:06]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 00:25:06]INFO : Restarting websocket...
[2022-06-14 00:25:07]INFO : Websocket connected
[2022-06-14 02:21:28]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 02:21:28]INFO : Restarting websocket...
[2022-06-14 02:21:29]INFO : Websocket connected
[2022-06-14 02:25:07]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 02:25:07]INFO : Restarting websocket...
[2022-06-14 02:25:07]INFO : Websocket connected
[2022-06-14 04:21:29]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 04:21:29]INFO : Restarting websocket...
[2022-06-14 04:21:30]INFO : Websocket connected
[2022-06-14 04:25:07]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 04:25:07]INFO : Restarting websocket...
[2022-06-14 04:25:08]INFO : Websocket connected
[2022-06-14 06:21:29]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 06:21:30]INFO : Restarting websocket...
[2022-06-14 06:21:30]INFO : Websocket connected
[2022-06-14 06:25:08]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 06:25:08]INFO : Restarting websocket...
[2022-06-14 06:25:09]INFO : Websocket connected
[2022-06-14 08:21:30]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 08:21:30]INFO : Restarting websocket...
[2022-06-14 08:21:31]INFO : Websocket connected
[2022-06-14 08:25:09]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 08:25:09]INFO : Restarting websocket...
[2022-06-14 08:25:09]INFO : Websocket connected
[2022-06-14 10:21:31]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 10:21:31]INFO : Restarting websocket...
[2022-06-14 10:21:31]INFO : Websocket connected
[2022-06-14 10:25:09]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 10:25:09]INFO : Restarting websocket...
[2022-06-14 10:25:10]INFO : Websocket connected
[2022-06-14 12:21:31]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 12:21:31]INFO : Restarting websocket...
[2022-06-14 12:21:32]INFO : Websocket connected
[2022-06-14 12:25:10]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 12:25:10]INFO : Restarting websocket...
[2022-06-14 12:25:11]INFO : Websocket connected
[2022-06-14 14:21:32]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 14:21:32]INFO : Restarting websocket...
[2022-06-14 14:21:32]ERROR : error from callback >: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:21:32]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:21:32]INFO : Restarting websocket...
[2022-06-14 14:21:32]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:21:32]INFO : Restarting websocket...
[2022-06-14 14:21:32]ERROR : error from callback >: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:21:32]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:21:32]INFO : Restarting websocket...
Exception in thread Thread-68:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 424, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 57, in _on_close
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 383, in run_forever
dispatcher.read(self.sock.sock, read, check)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 66, in read
if not read_callback():
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 351, in read
return teardown(frame)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 318, in teardown
self._callback(self.on_close, close_status_code, close_reason)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 429, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 424, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 386, in run_forever
self._callback(self.on_error, e)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 429, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]INFO : Websocket connection close: (1001)-Going away
[2022-06-14 14:25:11]INFO : Restarting websocket...
[2022-06-14 14:25:11]ERROR : error from callback >: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]INFO : Restarting websocket...
[2022-06-14 14:25:11]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]INFO : Restarting websocket...
[2022-06-14 14:25:11]ERROR : error from callback >: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]ERROR : Websocket error: prepare_token_request() got multiple values for argument 'grant_type'
[2022-06-14 14:25:11]INFO : Restarting websocket...
Exception in thread Thread-71:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 424, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 57, in _on_close
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 383, in run_forever
dispatcher.read(self.sock.sock, read, check)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 66, in read
if not read_callback():
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 351, in read
return teardown(frame)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 318, in teardown
self._callback(self.on_close, close_status_code, close_reason)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 429, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 424, in _callback
callback(self, *args)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 484, in request
url, http_method=method, body=data, headers=headers
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 386, in run_forever
self._callback(self.on_error, e)
File "/usr/local/lib/python3.7/dist-packages/websocket/_app.py", line 429, in _callback
self.on_error(self, e)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 53, in _on_error
self._set_connected(False)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/ws_client.py", line 45, in _set_connected
self._on_connection_callback()
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 288, in
self.gardena_ws_client = WSClient(on_message_callback=self.on_message, on_connection_lost_callback=lambda: self.on_gardena_ws_connection_lost(location=location), level=self.level)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 340, in on_gardena_ws_connection_lost
self.start_gardena_ws(location)
File "/var/www/html/plugins/gardena/resources/gardenad/gardena/smart_system.py", line 282, in start_gardena_ws
data=json.dumps(args, ensure_ascii=False),
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 503, in request
self.auto_refresh_url, auth=auth, **kwargs
File "/usr/local/lib/python3.7/dist-packages/requests_oauthlib/oauth2_session.py", line 422, in refresh_token
body=body, refresh_token=refresh_token, scope=self.scope, **kwargs
File "/usr/local/lib/python3.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 475, in prepare_refresh_body
refresh_token=refresh_token, **kwargs)
TypeError: prepare_token_request() got multiple values for argument 'grant_type'