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

Login gives HTTP 403 #83

Open
istvan-fodor opened this issue Jul 1, 2022 · 4 comments
Open

Login gives HTTP 403 #83

istvan-fodor opened this issue Jul 1, 2022 · 4 comments

Comments

@istvan-fodor
Copy link

When I try to run the login command, I get a 403 error. Is this just me or is there an issue with the API itself?

Username: [email protected]
Password: ******************
2022/07/01 13:45:07 unexpected status code 403
exit status 1
@andig
Copy link
Collaborator

andig commented Jul 1, 2022

You need the token to login. User password didn‘t work for a long time.

@istvan-fodor
Copy link
Author

Understood. Is there a way to obtain a token besides what is written in the Readme? I get the above error when I try to obtain the token with the command below:

go run . -o ~/tesla.token

@bogosj
Copy link
Owner

bogosj commented Jul 2, 2022

I've used this app in the past:

https://play.google.com/store/apps/details?id=net.leveugle.teslatokens

@tijszwinkels
Copy link

tijszwinkels commented Aug 8, 2022

format of the tesla.token file is as following:

{	"access_token":"replace-with-your-access-token",
	"refresh_token": "replace-with-your-refresh-token"
}

source: https://cs.opensource.google/go/x/oauth2/+/128564f6:token.go;l=31

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

4 participants