Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Error 403: Forbidden url #27

Open
tux43 opened this issue Feb 26, 2021 · 7 comments
Open

HTTP Error 403: Forbidden url #27

tux43 opened this issue Feb 26, 2021 · 7 comments

Comments

@tux43
Copy link

tux43 commented Feb 26, 2021

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

@the-mace
Copy link
Contributor

I saw the same thing starting yesterday.

@gglockner
Copy link
Owner

Can you post the output of:

python --version
pip freeze

@tux43
Copy link
Author

tux43 commented Feb 26, 2021

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

@gglockner
Copy link
Owner

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.

@the-mace
Copy link
Contributor

My +1 was on Python 3.8.2. For a period yesterday, nothing worked. It also appears to be working again for me.

@CarstenKochElsdorf
Copy link

CarstenKochElsdorf commented Jan 12, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants