-
Notifications
You must be signed in to change notification settings - Fork 72
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
Auth disabled when streaming? #65
Comments
Do you have MFA in your account? If so you need to authenticate with MFA to use the streaming i think.
…Sent from my iPhone
On 6 Jan 2021, at 12:52, mortimern <notifications@github.com> wrote:
Hi, just started updating my app with the version 7.0.0 of TeslaSwift. I have sorted out the other differences, but the streaming is complaining about not being authorized?
Opening Stream to: wss://streaming.vn.teslamotors.com/streaming/
Stream viabilityChanged: true
Stream open headers: ["Sec-WebSocket-Accept": "FKS+dFuLRSWpWI3am6ZNoh+h7l8=", "X-Content-Type-Options": "nosniff", "Date": "Wed, 06 Jan 2021 10:01:07 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains, max-age=31536000; includeSubDomains", "Connection": "upgrade", "Cache-Control": "no-cache, no-store, private, s-max-age=0", "X-Frame-Options": "DENY", "Upgrade": "websocket"]
Stream data: {"msg_type":"control:hello","connection_timeout":0}
Stream got hello
Stream data: {"msg_type":"data:error","tag":"1422335915","value":"Basic Auth Disabled","error_type":"client_error"}
Stream got data error: Basic Auth Disabled, client_error
Stream closed
Stream cancelled
How can I add oAuth to the streaming code? Do I have to use oAuth login for the app, or is it separate for streaming?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#65>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANOMXTBZ2DUYM5QTHJXKVLSYQ6IBANCNFSM4VXLVFDQ>.
|
Ok, I will check and try that. |
I dont have MFA activated, but used weblogin instead for the app and it got data on the stream, but the stream closed pretty fast. probably because the car is parked. I will try with the car driving too. Stream got data: 1609933224961,,1973.1,74,58,276,xx.xxxxxx,xx.xxxxxx,,237,132,280 |
I think we need to send some pings, im not 100% sure here. I might need to make an auto ping.
…Sent from my iPhone
On 6 Jan 2021, at 13:43, mortimern <notifications@github.com> wrote:
I dont have MFA activated, but used weblogin instead for the app and it got data on the stream, but the stream closed pretty fast. probably because the car is parked. I will try with the car driving too.
Stream got data: 1609933224961,,1973.1,74,58,276,xx.xxxxxx,xx.xxxxxx,,237,132,280
Stream data: {"msg_type":"data:error","tag":"1422335915","value":"disconnected","error_type":"vehicle_disconnected"}
Stream got data error: disconnected, vehicle_disconnected
Stream closed
Stream cancelled
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#65 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANOMXWN6TUJ5MVU3C6PXCDSYREGBANCNFSM4VXLVFDQ>.
|
Something must be done I guess. I activated MFA too now, but the same result that it disconnects after a couple of minutes. I did a small trip now to pick up some kids from school and it disconnected after 3km. It worked great up until then with frequent updates. Maybe put in some kind of auto reconnect if it drops without me telling it to. |
I think it needs the auto ping every X seconds. I have to try it.
…Sent from my iPhone
On 6 Jan 2021, at 15:39, mortimern <notifications@github.com> wrote:
Something must be done I guess. I activated MFA too now, but the same result that it disconnects after a couple of minutes. I did a small trip now to pick up some kids from school and it disconnected after 3km. It worked great up until then with frequent updates. Maybe put in some kind of auto reconnect if it drops without me telling it to.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#65 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANOMXRQQ7UIPCWMI4V3L3DSYRRYHANCNFSM4VXLVFDQ>.
|
Hi, just started updating my app with the version 7.0.0 of TeslaSwift. I have sorted out the other differences, but the streaming is complaining about not being authorized?
Opening Stream to: wss://streaming.vn.teslamotors.com/streaming/
Stream viabilityChanged: true
Stream open headers: ["Sec-WebSocket-Accept": "FKS+dFuLRSWpWI3am6ZNoh+h7l8=", "X-Content-Type-Options": "nosniff", "Date": "Wed, 06 Jan 2021 10:01:07 GMT", "Strict-Transport-Security": "max-age=15724800; includeSubDomains, max-age=31536000; includeSubDomains", "Connection": "upgrade", "Cache-Control": "no-cache, no-store, private, s-max-age=0", "X-Frame-Options": "DENY", "Upgrade": "websocket"]
Stream data: {"msg_type":"control:hello","connection_timeout":0}
Stream got hello
Stream data: {"msg_type":"data:error","tag":"1422335915","value":"Basic Auth Disabled","error_type":"client_error"}
Stream got data error: Basic Auth Disabled, client_error
Stream closed
Stream cancelled
How can I add oAuth to the streaming code? Do I have to use oAuth login for the app, or is it separate for streaming?
The text was updated successfully, but these errors were encountered: