teslajson
teslajson copied to clipboard
HTTP Error 403: Forbidden url
Hi, This was working and I have just started to get 403 errors. Is this happening to anybody else?
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://auth.tesla.com/oauth2/v3/authorize?code_challenge=NDk3YmI5MzZhOWRkNTBiNDA2MDlkYjdkZWI4ZGE1NDY2ODlhMTVmZDczZWVjZjUwYjg4Y2Y0NzVlOTVmYzJiOA%3D%3D&client_id=ownerapi&state=lmim84twliip2m0dm46zl1u7&redirect_uri=https%3A%2F%2Fauth.tesla.com%2Fvoid%2Fcallback&response_type=code&code_challenge_method=S256&scope=openid+email+offline_access
I saw the same thing starting yesterday.
Can you post the output of:
python --version
pip freeze
Can you post the output of:
python --version pip freeze
Guess what, it has started working again. I've posted output however I'm happy to close this. Might have been an issue with Tesla API rather than teslajson??
root@masterbot:/config# python --version Python 2.7.16 root@masterbot:/config# pip freeze asn1crypto==0.24.0 bluepy==1.3.0 certifi==2020.12.5 chardet==4.0.0 configparser==3.5.0b2 cryptography==2.6.1 entrypoints==0.3 enum34==1.1.6 idna==2.10 ipaddress==1.0.17 keyring==17.1.1 keyrings.alt==3.1.1 oauthlib==3.1.0 pexpect==4.8.0 ptyprocess==0.6.0 pycrypto==2.6.1 PyGObject==3.30.4 pyxdg==0.25 requests==2.25.1 requests-oauthlib==1.3.0 RPi.GPIO==0.7.0 SecretStorage==2.3.1 six==1.12.0 teslajson==2.0.0 urllib3==1.26.3
I'm glad it's working. Note that I'm no longer supporting Python 2.7. If it works, that's great but I'm not doing any 2.7 fixes going forward.
My +1 was on Python 3.8.2. For a period yesterday, nothing worked. It also appears to be working again for me.
Hi,
I have this same issue. I never got it to work. Could you help me ? Please
Thank you
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=M2VmZTU1YjYzM2M3NGEyZmEzNDZlODZmYjU0YmJlOThiYWEzNTFiZjMzZTIyZWQ5MDU5N2JhNmIzNjU1ZWU5YQ%3D%3D&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fauth.tesla.com%2Fvoid%2Fcallback&response_type=code&scope=openid+email+offline_access&state=1a1eq684sx7bfxzp9s0larxr
I am also seeing the same error:
connection = teslajson.Connection(TESLA_EMAIL, TESLA_PASSWORD)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/teslajson/teslajson.py", line 66, in __init__
self.fetch_token(**kwargs)
File "/usr/lib/python3.11/site-packages/teslajson/teslajson.py", line 150, in fetch_token
self.fetch_sso_token(**kwargs)
File "/usr/lib/python3.11/site-packages/teslajson/teslajson.py", line 101, in fetch_sso_token
r.raise_for_status()
File "/usr/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=...
Is teslajson dead for good or is anyone planning on fixing this?