Closed andig closed 2 years ago
I've noticed this in my logfile today:
[tesla ] TRACE 2022/03/18 09:28:55 POST https://auth.tesla.com/oauth2/v3/token [tesla ] TRACE 2022/03/18 09:28:55 grant_type=refresh_token&refresh_token=*** -- {"error":"unauthorized_client","error_description":"Unauthorized client","error_uri":"https://auth.tesla.com/error/reference/240b1ae2-..."} [tesla ] TRACE 2022/03/18 09:28:55 POST https://auth.tesla.com/oauth2/v3/token [tesla ] TRACE 2022/03/18 09:28:56 client_id=ownerapi&grant_type=refresh_token&refresh_token=*** -- {"access_token":"eyJhbGciO...","expires_in":28800,"token_type":"Bearer"}
it seems as if we're trying to refresh the token twice, first time with missing clientid=ownerapi though I couldn't immediately find it.
clientid=ownerapi
Any ideas?
Fixed in https://github.com/bogosj/tesla/commit/f0699118f0fd027226909c0be15a40fd76bc580b. Sorry for the immediate commit- wanted to create a PR first.
I've noticed this in my logfile today:
it seems as if we're trying to refresh the token twice, first time with missing
clientid=ownerapi
though I couldn't immediately find it.Any ideas?