You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just found this repo. Seems very well put together. I tried using the cli.py as well as importing the teslapy in my own python script. It fails with the following error.
Traceback (most recent call last):
File "./test.py", line 3, in <module>
tesla.fetch_token()
File "/docker/homeassistant/config/python_scripts/TeslaPy/teslapy.py", line 69, in fetch_token
response = self.api('AUTHENTICATE', data=data)
File "/docker/homeassistant/config/python_scripts/TeslaPy/teslapy.py", line 162, in api
return self.request(endpoint['TYPE'], uri, data=kwargs)
File "/docker/homeassistant/config/python_scripts/TeslaPy/teslapy.py", line 55, in request
response.raise_for_status() # Raise HTTPError, if one occurred
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: invalid_request. The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed for url: https://owner-api.teslamotors.com/oauth/token
I tried to recreate the cache.json with a valid token, but that did not seem to work either.
The text was updated successfully, but these errors were encountered:
Just found this repo. Seems very well put together. I tried using the cli.py as well as importing the teslapy in my own python script. It fails with the following error.
I tried to recreate the cache.json with a valid token, but that did not seem to work either.
The text was updated successfully, but these errors were encountered: