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.45k stars 151 forks source link

Prompted for authentication after login #1272

Closed jumaksim closed 2 days ago

jumaksim commented 6 days ago

Describe the bug

I tried logging in with user name, password, api key id, and api key. I also tried logging in with a token and refresh token. After login I am prompted for credentials again (a prompt from the browser) and nothing works for authentication there. If I press cancel I see {"error":"Unauthorized"} in the browser. Looking in the logs I see this:

2024-06-22 11:49:56 [WyzeBridge] [+] Adding WhiteCam2 [HL_CAM4] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding WhiteCam1 [HL_CAM4] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding 3rd [HL_CAM4] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding NewCam2 [HL_CAM4] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding 3rdFrom Home [HL_CAM4] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding 5th camera [WYZE_CAKP2JFUS] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding Old Front Gate [WYZE_CAKP2JFUS] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding 3b sideline [WYZE_CAKP2JFUS] 2024-06-22 11:49:56 [WyzeBridge] [+] Adding Wyze Cam V3 [WYZE_CAKP2JFUS] 2024-06-22 11:49:56 [WyzeBridge] starting MediaMTX 1.1.1 2024-06-22 11:49:56 [WyzeBridge] 🎬 9 streams enabled 2024-06-22 11:50:01 [WyzeBridge] 172.17.0.1 - - [22/Jun/2024 18:50:01] "GET / HTTP/1.1" 401 - 2024-06-22 11:50:03 [WyzeBridge] 172.17.0.1 - - [22/Jun/2024 18:50:03] "GET / HTTP/1.1" 401 - 2024-06-22 11:57:12 [WyzeBridge] 172.17.0.1 - - [22/Jun/2024 18:57:12] "GET / HTTP/1.1" 401 - 2024-06-22 11:57:14 [WyzeBridge] 172.17.0.1 - - [22/Jun/2024 18:57:14] "GET / HTTP/1.1" 401 -

I believe I am running version 2.9.9 of the docker image (I was using 2.6 and didn't have this issue). I am running docker on a windows pc, v4.31.1 login

xTitanXDx commented 6 days ago

Had the same issue. I set a login in compose: environment:

[OPTIONAL] Credentials can be set in the WebUI

        # API Key and ID can be obtained from the wyze dev portal: 
        # https://developer-api-console.wyze.com/#/apikey/view
        - WB_USERNAME=admin
        - WB_PASSWORD=password

or I think it auto-generates a login which is shown in the beginning of the log when you newly start the container.

jumaksim commented 6 days ago

That did the trick. Thank you!

dp0100 commented 5 days ago

Or set WEB_AUTH = False