tesla icon indicating copy to clipboard operation
tesla copied to clipboard

Login gives HTTP 403

Open istvan-fodor opened this issue 3 years ago • 4 comments

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

istvan-fodor avatar Jul 01 '22 18:07 istvan-fodor

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

andig avatar Jul 01 '22 19:07 andig

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

istvan-fodor avatar Jul 02 '22 00:07 istvan-fodor

I've used this app in the past:

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

bogosj avatar Jul 02 '22 00:07 bogosj

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

tijszwinkels avatar Aug 08 '22 07:08 tijszwinkels