Skip to content
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

No client-side feedback when bad Wyze credentials are entered #8

Open
amishHammer opened this issue May 26, 2022 · 4 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@amishHammer
Copy link

After setting up the credentials, no devices are appearing in the device list. The account used has 2 plugs and 5 cameras on it.

@eshapiro42
Copy link
Owner

I have also noticed this issue occasionally but have always been able to resolve it fairly easily. Please try refreshing the page with the OctoPrint-Wyze tab open and if that fails, please try rebooting the server.

If neither of those things work, please share your server logs here.

The initialization is complicated and I haven't yet figured out the proper order of events on the server side, hence why a client-side refresh is sometimes necessary.

@amishHammer
Copy link
Author

So this turned out to be a bad password. There was no feedback in the web ui that the password was bad. Only when I tried to login to the wyze website to get a locked out message due to failed password attempts did I know what was wrong.

@eshapiro42
Copy link
Owner

Got it, looks like I need to catch WyzeApiErrors when initializing the Client object. Glad you got it working.

@eshapiro42 eshapiro42 self-assigned this May 27, 2022
@eshapiro42 eshapiro42 added the enhancement New feature or request label May 27, 2022
@eshapiro42 eshapiro42 changed the title No devices show up in device list No client-side feedback when bad Wyze credentials are entered May 30, 2022
@waholmes92
Copy link

I have also noticed this issue occasionally but have always been able to resolve it fairly easily. Please try refreshing the page with the OctoPrint-Wyze tab open and if that fails, please try rebooting the server.

If neither of those things work, please share your server logs here.

The initialization is complicated and I haven't yet figured out the proper order of events on the server side, hence why a client-side refresh is sometimes necessary.

Hello eshapiro42, I'm not able to sign in to my Wyze account with the plugin, and my log files are attached.
octoprint.log

I just did a fresh install of 1.0.0 so I could install this plugin (it didn't work with 0.18.0), and while I was able to install OctoPrint-Wyze, when I enter my Wyze username and password along with my Wyze API key information it still says Connected to Wyze as None. I took a peek at the .log file and it had at least one of my devices listed, so I think it was able to connect to my account, but no plugs or lights are showing up.

Let me know if you need a different .log file, and thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants