-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Something wrong with streaming auth #210
Comments
Have you enabled MFA on your account? |
No sir, I have just enabled 2FA and then disabled 2FA, at all times vechiles/vehicle continues with valid responses, but startstreaming continues to return "Error: Basic Auth Disabled", which is passed directly by your code from the Tesla servers. |
Hmm. The TJS streaming code has not changed recently so something may have changed on the Tesla side. Have you taken a recent FW update? Is your car an M3? I vaguely remember hearing that streaming stopped working on some car models with some FW versions. Since I do not have those combinations I cannot reproduce. |
Hi Mark, Hopefully others will start noticing this issue and then we can get to the bottom of it. Thanks |
I'm seeing this as well. I originally saw this issue with the Ruby API, and saw the same behavior with TeslaJS. |
I am also getting this on my android app I wrote, I thought it was something I was doing wrong in WebSockets() but guess it is everybody. |
This is reputed to be the issue |
@IMgoRt, I do have an M3. I have just started doing this in the last 3 days so not sure if it ever worked before. I have tried the "data:subscribe_oauth" and it does the same thing for me. |
Have you been driving at the time as the timeout seems to be 10s if no draw on the battery |
Not driving, at my desk working on the code. I will try the "data:subscribe_oauth" way again, maybe I am missing something on what is passed, what are people referring to when they say use your oauth string instead of oauth token, not sure I have seena way to make an oauth string? |
Of you perform a vehicle() then you get a 2 part string which you seem to
be using to authenticate.
If you do a login() then part of the returned array is the authtoken a much
longer single string which should be used in this new call.
I'm away from home right now or I would test this myself.
Using then newer method should get a different response to the basic auth
failure.
…On Thu, 12 Nov 2020, 13:52 ktoonsez, ***@***.***> wrote:
Not driving, at my desk working on the code. I will try the
"data:subscribe_oauth" way again, maybe I am missing something on what is
passed, what are people referring to when they say use your oauth string
instead of oauth token, not sure I have seena way to make an oauth string?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#210 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM26KUGVILOIZN7LM5QAEM3SPPSDNANCNFSM4TMNQZGA>
.
|
I used the normal "https://owner-api.teslamotors.com/oauth/token" to get token and refresh token, but not aware of any path called "https://owner-api.teslamotors.com/login" that you are referring to. I will keep poking around to see if I can find that login path. Please post up if you find what you are talking about when home, thanks. |
Awesome! |
Thank you Mark for your prompt attention, working fine in the UK |
Having been using startStreating for 6 months without issue, 2 days ago it started returning the error "Error: Basic Auth Disabled"
I was using my username: email and password: options.tokens[0]
I get the same error using simply authToken: CurrentToken (which works in vehicles
Library version
4.7.0,
updated to 4.9.3
Additional context
called within NodeRed
The text was updated successfully, but these errors were encountered: