Closed jumaksim closed 2 days ago
Had the same issue. I set a login in compose: environment:
# 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.
That did the trick. Thank you!
Or set WEB_AUTH = False
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