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
Calling the client won't let me login #35
Comments
Same. This is what I'm getting now when I'm testing it (on my mac):
But the error I get on my raspberry pi is different, for some reason, I have no idea why:
That was the time of the first error, a little before 1am Central Daylight this morning. My cron job runs every 3 minutes, so it would have been within that time frame that something changed, I guess. (Edit: the different errors I'm getting are probably because, I just realized, I have wyze-sdk 1.1.5 on my mac; raspberry pi is using 1.2.1; interesting that 1.1.5 is apparently still able to log into the client? Because it doesn't error out until after that line) |
Same here. I've been using the same username and password and these are the headers that wyze_sdk is receiving after trying to login now:
|
I found a temporary solution! Adding a user-agent header to the _get_headers function in auth_service.py works.
|
Okay. I will take a look in the morning.
I have quite the backlog of things to address here :)
…On Thu, Jul 22, 2021, 8:33 PM Taylor Bernt ***@***.***> wrote:
I found a temporary solution! Adding a user-agent header to the
_get_headers function in auth_service.py works.
Example:
request_specific_headers.update({
"user-agent": "wyze_android_2.11.40", <----- This is the line to add
'x-api-key': self.api_key,
})
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEDBMBRBAFIPJDQPMG2DE3TZC2EDANCNFSM5A2XMAYQ>
.
|
Thanks for the fix @taylorbernt0! I think I remember Wyze sent out an email a few weeks ago noting that they were dropping compatibility for older versions of their app for security reasons. Because of that, it would make sense that this small fix is the correct solution. |
Thanks @taylorbernt0 that worked for me too, even though I don't understand a lick of what's going on there. If this is indeed the permanent solution you should do a pull request! |
Big thanks to @taylorbernt0 for that fix! That did the trick, I'm super excited to check out this client. Just bought so much Wyze stuff. |
Hey all...I will get a permanent fix in for this shortly. I've got a handful of fixes piling up, just need a bit of time to work them. |
@taylorbernt0 Totally worked for me as well. Thank you so much! |
Seems something changed because I have an automation that log in automatically in my account and it stopped working. The password is fine and I can use the Wyze application as normal. Probably an API changed?
The text was updated successfully, but these errors were encountered: