eshapiro42 / OctoPrint-Wyze

Control Wyze devices through OctoPrint
GNU General Public License v3.0
10 stars 1 forks source link

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

Open amishHammer opened 2 years ago

amishHammer commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

waholmes92 commented 7 months ago

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!