Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error #1149

Open
ntbritton opened this issue Apr 3, 2024 · 1 comment
Open

Internal Server Error #1149

ntbritton opened this issue Apr 3, 2024 · 1 comment

Comments

@ntbritton
Copy link

ntbritton commented Apr 3, 2024

While going to the "Open WEB UI" button on the addon, i get the following:

Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

In the log i am seeing the following:

TypeError: object of type 'NoneType' has no len()
[WyzeBridge] 172.30.32.2 - - [03/Apr/2024 10:15:36] "GET / HTTP/1.1" 500 -
[WyzeBridge] 🔍 Could not find local cache for 'cameras'
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] 🔍 Could not find local cache for 'auth'
[WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
[WyzeBridge] ⚠️ 403 Client Error: Forbidden for url: https://auth-prod.api.wyze.com/user/login
[WyzeBridge] {"URL":"https://support.wyze.com/hc/en-us/articles/16129834216731-Creating-an-API-Key"}
[2024-04-03 10:19:13,329] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask_httpauth.py", line 172, in decorated
return self.ensure_sync(f)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/frontend.py", line 65, in index
cam_data=web_ui.all_cams(wb.streams, wb.api.total_cams, host),
^^^^^^^^^^^^^^^^^
File "/app/wyzebridge/wyze_api.py", line 90, in total_cams
return 0 if self.mfa_req else len(self.get_cameras())
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
[WyzeBridge] 172.30.32.2 - - [03/Apr/2024 10:19:13] "GET / HTTP/1.1" 500 -

@mrlt8
Copy link
Owner

mrlt8 commented Apr 23, 2024

You seem to be using an older build of the bridge as wyze stopped using https://auth-prod.api.wyze.com/user/login almost a year ago.

You'll need to update your bridge to v2.3.x or newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants