Git Product home page Git Product logo

Comments (3)

mcbirse avatar mcbirse commented on July 18, 2024

Hi @ma773o - my understanding is that the TeslaPy module should actually automatically update the auth token file... I have used some very old saved auth token files before (however, with the tesla-history script from the Powerwall-Dashboard project) and never had an issue.

Have you checked the permissions of the set-reserve.auth file to ensure it is writable by the script perhaps?

from pypowerwall.

ma773o avatar ma773o commented on July 18, 2024

Hi,
permissions are fine...
I've now tried to remove .auth and .conf file and re-do the login process to obtain a fresh token and it actually fails. I called it with -d to get debug info and I got the following (I've hidden personal data):

python3 set-reserve.py -d --login

Config file 'set-reserve.conf' not found

Do you want to create the config now? [Y/n] Y

Tesla Account Setup
-------------------
Email address: [email protected]
Save auth token to: [set-reserve.auth] 

Config saved to 'set-reserve.conf'

----------------------------------------
Tesla account: [email protected]
----------------------------------------
Open the below address in your browser to login.

https://auth.tesla.com/oauth2/v3/authorize?response_type=code&client_id=ownerapi&redirect_uri=https%3A%2F%2Fauth.tesla.com%2Fvoid%2Fcallback&scope=openid+email+offline_access&state=HIDDEN&code_challenge=HIDDEN&code_challenge_method=S256&login_hint=hidden%40hidden.com

After login, paste the URL of the 'Page Not Found' webpage below.

Enter URL after login: https://auth.tesla.com/void/callback?code=HIDDEN&state=HIDDEN&issuer=https%3A%2F%2Fauth.tesla.com%2Foauth2%2Fv3
ERROR: Login failure - (missing_token) Missing access token parameter.

This was working a couple of days ago, and of course my the email/password pair works when authenticating to tesla.com

from pypowerwall.

jasonacox avatar jasonacox commented on July 18, 2024

Hi @ma773o - I'm not sure what could be going wrong here. You seem to be doing the right thing (I assume you removed replaced the real code with code=HIDDEN).

Some (likely not very helpful) thoughts:

  • Do you have more than one account with Tesla? Is this the right one?
  • Try to clear your browser cache / cookies and try again
  • Make sure you have the latest set-reserve.py

from pypowerwall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.