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 after a few minutes #1403

Open
jimakok opened this issue Jan 4, 2025 · 0 comments
Open

Internal Server Error after a few minutes #1403

jimakok opened this issue Jan 4, 2025 · 0 comments

Comments

@jimakok
Copy link

jimakok commented Jan 4, 2025

All of the sudden, getting the following error after a few minutes of starting wyzebridge. WebUI comes up fine initially, but the error eventually appears. Other commands like getting api status or resetting cameras work but the localhost:50000 command still gets the error. Have tried earlier version of bridge and docker - no change.

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.

Captured log activity follows:

19:51:38 [ERROR][WyzeBridge] Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/frontend.py", line 38, in wrapped_view
return web_ui.auth.login_required(view)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask_httpauth.py", line 174, in decorated
return self.ensure_sync(f)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/frontend.py", line 95, in index
render_template(
File "/usr/local/lib/python3.12/site-packages/flask/templating.py", line 150, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/templating.py", line 131, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/app/templates/index.html", line 1, in top-level template code
{% extends 'base.html' %}
File "/app/templates/base.html", line 17, in top-level template code
{% block content %}
File "/app/templates/index.html", line 132, in block 'content'
value="{{(camera.camera_info.sdParm.capacity|int-camera.camera_info.sdParm.free|int)/camera.camera_info.sdParm.capacity|int}}"
^^^^^^^^^^^^^^^^^^^^^^^^^
ZeroDivisionError: division by zero
19:51:38 [INFO][WyzeBridge] 172.18.0.1 - - [04/Jan/2025 19:51:38] "GET / HTTP/1.1" 500 -

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

1 participant