tesladdicts / testatus

Python suite to access the Tesla JSON API, pollers and log via the API, parse the log, rpc, etc
MIT License
12 stars 2 forks source link

HTTP Error 401: Unauthorized #2

Closed LelandSindt closed 5 years ago

LelandSindt commented 5 years ago

Suddenly... I am seeing 401s back from Tesla...

Are you having any trouble with the JSON API tonight/suddenly?

LelandSindt commented 5 years ago

Thinking more clearly this morning I logged out, and attempted to log back into Tesla's web site..

"Your account has been locked due to too many failed login attempts. To unlock your account reset your password."

.. the phone app must be using a proper token because it worked fine last evening/this morning.

and... this happened just after I was experimenting with https://github.com/gaussmeter/query (which is a mess and I desperately needs a re-write...)

so yeah.. my fault...

Todo: implement/use tokens.. :)

SethRobertson commented 5 years ago

I've only ever used tokens. Perhaps we need to do something to make them easier to use (and forbid the use of passwords except for a dedicated setup program?)

LelandSindt commented 5 years ago

I am a fan of encouraging good patterns and making them easy follow. Not so much a fan of forbidding bad patterns.