tdorssers / TeslaPy

A Python module to use the Tesla Motors Owner API
MIT License
374 stars 83 forks source link

Authorization broken -> Always getting "Access Denied" #142

Open andimattes opened 1 year ago

andimattes commented 1 year ago

Starting with yesterday, I'm getting an Access Denied error when using staged authorization.

I'm using selenium with the following Chromeoptions:

options = Options() options.add_argument("--disable-blink-features=AutomationControlled") options.add_argument("--no-sandbox") options.add_argument("--headless") options.add_argument("--disable-dev-shm-usage") options.add_argument('--disable-extensions') options.add_argument("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36") options.add_argument("--window-size=1920,1080") options.add_argument("--disable-gpu") options.add_argument("--log-level=3")

I always worked without problems but starting with yesterday, after clicking the login button I'm redirected to a page saying

You don't have permission to access "http://auth.tesla.com/en_us/oauth2/v3/authorize?" on this server.

When authorizing manually in the browser everything seems to work.

tdorssers commented 1 year ago

Sounds a bit like #128, which OS and which versions of Python and packages are you using?