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.64k stars 162 forks source link

Unable to access WebUI - "Access to 127.0.0.1 was denied You don't have authorization to view this page" #1321

Open cbsudux opened 2 months ago

cbsudux commented 2 months ago

Hi

This is my first time setting this up. I have a wyze v4 2K camera. I'm running this on my mac.

This is the command I run

docker run --env-file .env -p 1935:1935 -p 8554:8554 -p 8888:8888 -p 5000:5000 mrlt8/wyze-bridge:latest

I pass the WYZE Email, Password, API id and key.

These are my logs

🚀 DOCKER-WYZE-BRIDGE v2.10.1 AARCH64

[WyzeBridge] SET WB_IP to allow WEBRTC connections.
[WyzeBridge] 🔍 Could not find local cache for 'auth'
[WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.17.0.2:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] 💾 Saving 'auth' to local cache...
[WyzeBridge] [AUTH] WB_AUTH=True
[WyzeBridge] [AUTH] WB_USERNAME=wbadmin
[WyzeBridge] [AUTH] WB_PASSWORD=c*****
[WyzeBridge] [AUTH] WB_API=KGdx84ylWFGmOzvo-****
[WyzeBridge] 🔍 Could not find local cache for 'user'
[WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
[WyzeBridge] 💾 Saving 'user' to local cache...
[WyzeBridge] 🔍 Could not find local cache for 'cameras'
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [1] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] [+] Adding Living Room Cam [HL_CAM4]
[WyzeBridge] [MTX] starting MediaMTX 1.8.4
[WyzeBridge] 🎬 1 stream enabled

I can't connect to the webUI to view the streams. I get a Access to 127.0.0.1 was deniedYou don't have authorization to view this page. error on http://127.0.0.1:5000/ and http://172.17.0.2:5000/ refuses to load.

Please help!

mrlt8 commented 2 months ago

You should normally get a basic authentication pop up when visiting the webUI, but if it's not working for some reason, you can manually login with with:

http://wbadmin:password@127.0.0.1:5000/ 

Replace password with the username portion of your wyze email (everything before the @ symbol). For the wyze email myEmail123@gmail.com, the default password would be myEmail123.

Another option would be to pass the environment variable WB_AUTH=True to disable authentication.