mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.65k stars 168 forks source link

Keep getting 'Invalid User Name or Password.' even though credentials are correct #1299

Closed DrVlikhell closed 3 months ago

DrVlikhell commented 3 months ago

This morning one out four cameras would not stream via wyzebridge. The camera was working in the app so I restarted the Docker container. Now I keep getting "code='1000' msg='Invalid User Name or Password.'" I have verified, many times, that the login credentials and API credentials are correct. I updated to the latest version of wyzebridge, from 2.9.3 to 2.9.12. I can log in to the Wyze website and app with my username and password so they are correct. I deleted and requested a new API key on the Wyze site, twice. I deleted the Docker container and reinstalled it, but the issue still persists. The server restarted for Windows Updates three days ago and there were no problems starting the Docker container then.

I am running Docker Desktop 4.32.0 in Windows 10 22H2 with the latest wyzebridge 2.9.12. Log to follow:

2024-07-17 13:55:31 wyze-bridge | 2024-07-17 13:55:31 wyze-bridge | 🚀 DOCKER-WYZE-BRIDGE v2.9.12 X86_64 2024-07-17 13:55:31 wyze-bridge | 2024-07-17 13:55:31 wyze-bridge | [WyzeBridge] 🔍 Could not find local cache for 'auth' 2024-07-17 13:55:31 wyze-bridge | Serving Flask app 'frontend' 2024-07-17 13:55:31 wyze-bridge | [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API... 2024-07-17 13:55:31 wyze-bridge | Debug mode: off 2024-07-17 13:55:31 wyze-bridge | [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. 2024-07-17 13:55:31 wyze-bridge | Running on all addresses (0.0.0.0) 2024-07-17 13:55:31 wyze-bridge | Running on http://127.0.0.1:5000 2024-07-17 13:55:31 wyze-bridge | * Running on http://172.18.0.2:5000 2024-07-17 13:55:31 wyze-bridge | [WyzeBridge] Press CTRL+C to quit 2024-07-17 13:55:33 wyze-bridge | [WyzeBridge] [API] code='1000' msg='Invalid User Name or Password.' method=POST path=/api/user/login 2024-07-17 13:55:33 wyze-bridge | [WyzeBridge] [API] Clearing credentials. Please try again. 2024-07-17 13:55:33 wyze-bridge | [WyzeBridge] [API] Cool down for 20s before trying again. 2024-07-17 13:55:40 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:55:40] "GET / HTTP/1.1" 302 - 2024-07-17 13:55:40 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:55:40] "GET /login HTTP/1.1" 200 - 2024-07-17 13:55:40 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:55:40] "GET /static/bulma-toast.js HTTP/1.1" 304 - 2024-07-17 13:55:40 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:55:40] "GET /static/site.css HTTP/1.1" 200 - 2024-07-17 13:55:40 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:55:40] "GET /static/bulma.css HTTP/1.1" 200 - 2024-07-17 13:55:53 wyze-bridge | [WyzeBridge] Credentials required to complete login! 2024-07-17 13:55:53 wyze-bridge | [WyzeBridge] Please visit the WebUI to enter your credentials. 2024-07-17 13:57:48 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:48] "POST /login HTTP/1.1" 200 - 2024-07-17 13:57:50 wyze-bridge | [WyzeBridge] [API] code='1000' msg='Invalid User Name or Password.' method=POST path=/api/user/login 2024-07-17 13:57:50 wyze-bridge | [WyzeBridge] [API] Clearing credentials. Please try again. 2024-07-17 13:57:50 wyze-bridge | [WyzeBridge] Credentials required to complete login! 2024-07-17 13:57:50 wyze-bridge | [WyzeBridge] Please visit the WebUI to enter your credentials. 2024-07-17 13:57:53 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:53] "GET / HTTP/1.1" 302 - 2024-07-17 13:57:53 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:53] "GET /login HTTP/1.1" 200 - 2024-07-17 13:57:53 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:53] "GET /static/bulma.css HTTP/1.1" 200 - 2024-07-17 13:57:53 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:53] "GET /static/site.css HTTP/1.1" 200 - 2024-07-17 13:57:53 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:57:53] "GET /static/bulma-toast.js HTTP/1.1" 304 - 2024-07-17 13:58:29 wyze-bridge | [WyzeBridge] 172.18.0.1 - - [17/Jul/2024 17:58:29] "POST /login HTTP/1.1" 200 -

The first fail to login is on first start of the Docker container. The second fail is when I entered the login and API credentials on the WebUI.

Docker-compose.yml is as follows (credentials redacted):

services: wyze-bridge: container_name: wyze-bridge restart: unless-stopped image: mrlt8/wyze-bridge:latest ports:

DrVlikhell commented 3 months ago

Thank you for the reply. In my troubleshooting efforts I requested a new API key from Wyze twice. It didn't help.

On Wed, Jul 17, 2024 at 10:53 PM mrlt8 @.***> wrote:

Can you double check your API key - they expire after one year and need to be generated again.

https://developer-api-console.wyze.com/

— Reply to this email directly, view it on GitHub https://github.com/mrlt8/docker-wyze-bridge/issues/1299#issuecomment-2235202211, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ5VH2KRGJQ2QTKS2WY3VPTZM4U35AVCNFSM6AAAAABLBGE4YCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGIYDEMRRGE . You are receiving this because you authored the thread.Message ID: @.***>

mrlt8 commented 3 months ago

hmm, that is weird. I tried to replicate the issue with a typo in my credentials and get a different error: code='1000' msg='Invalid credentials, please check username, password, keyid or apikey' method=POST path=/api/user/login

Any chance your bridge has a non-residential IP or connected via a VPN?

DrVlikhell commented 3 months ago

When I purposefully enter the email/password credentials wrong I get code='1000' msg='Invalid credentials, please check username, password, keyid or apikey' method=POST path=/api/user/login When I enter everything correctly, or purposefully make an error in the API credentials I get code='1000' msg='Invalid User Name or Password.' method=POST path=/api/user/login

I have a residential IP address as far as I'm aware but I am connected to a VPN.

I just tried restarting the Docker container with the VPN disconnected and it worked perfectly. That's very strange since I've been connected to the exact same VPN server the entire time I've been running wyzebridge. I've restarted the Docker container before with the VPN connected, as it's always connected, and there has never been an issue. I guess I'll look for a way to set Docker outside the VPN. Thank you for the suggestions.

On Wed, Jul 17, 2024 at 11:04 PM mrlt8 @.***> wrote:

hmm, that is weird. I tried to replicate the issue with a typo in my credentials and get a different error: code='1000' msg='Invalid credentials, please check username, password, keyid or apikey' method=POST path=/api/user/login

Any chance your bridge has a non-residential IP or connected via a VPN?

— Reply to this email directly, view it on GitHub https://github.com/mrlt8/docker-wyze-bridge/issues/1299#issuecomment-2235217755, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ5VH2M5FV5G3IAL3Z3CJRLZM4WCFAVCNFSM6AAAAABLBGE4YCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGIYTONZVGU . You are receiving this because you authored the thread.Message ID: @.***>