-
Notifications
You must be signed in to change notification settings - Fork 5
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
To many request to wyze server. #6
Comments
@hgoscenski If you have time to look into this that would be great. |
@jfarmer08 my suspicion is this is related to the password reset emails received by many users on January 31st. The email I received from Wyze indicated my password was reset on the 31st. If it was reset at 0000 on the 31st, then 2300 on the 1st would be a reasonable time to see expiration. Looking at the graph shown in jfarmer08/homebridge-wyze-smart-home#215 (comment) it seems that the rate of logins didn't scale up all at once, but rather over the course of an hour (presumably before the Wyze team blocked the user agent), I am guessing that this is scaling up as refresh tokens expired and/or stopped working due to the forced password resets. Though of course this is purely a guess. In addition there appeared to be a change in the response of the We may want to perform an exponential backoff for the retries, I can see about putting together a PR to provide that functionality. Unfortunately until users update or turn off the plugin in their homebridges I suspect that User-Agent will have to remain blocked. |
That's brings up a great question. I will ask the wyze team. @xcz011 where all users passwords reset or just a subset of customers? Maybe just users using this user agent? |
@hgoscenski Thanks for checking on this issue.
Additionally, I noticed one user reported his https://camect.com/ broked as well, which leads me to believe camect may refer to this package as well for its integration with Wyze. |
@xcz011 i am referencing these errors mentioned here: They seem to have started after the header was blocked, though I can check my logs tomorrow from the plugin and see the first time I can see those particular failures. The reason I indicate that it is an api change is the plugin treated (almost) any value in the This change was part of the fix here: |
@xcz011 I checked my logs, I have logs from approximately the previous 2 weeks before the end of January. I only saw the
|
looks like this error message from this line https://github.com/jfarmer08/wyze-api/blob/main/src/index.js#L145 Do you know why ? |
but we do have a small change on |
This is only throwing an error if its not Success if (result.data.msg == "DeviceIsOffline" || result.data.msg == "SUCCESS") { return result } else |
What change are you referring to? |
@xcz011 previously there was no Indeed, upon further analysis of the logs from my homebridge, this appears to be a change to the Looking at the logs, it appears when
|
@hgoscenski I think this address the issue. |
I cannot remember why I even add this in the first place, so I removed it for now in a PR. Without knowing all possible message that we could see it hard to code for it. |
@xcz011 I believe that did resolve the issue, however, I believe that change to the API, combined with the handling of the @jfarmer08's change will remove that entirely, which makes sense, given that we don't know all possible values for |
jfarmer08/homebridge-wyze-smart-home#215
The text was updated successfully, but these errors were encountered: