Hi, when I try to save a widget in the dashboard I get the error, but seems that every thing is working fine. I have tried some things and deleted some widgets and now I get the error. All widgets are working. Restarted everything and also updated mycodo but the problem still persists.
Error 500: Internal Server Error
Version: 8.16.1
Database: 5966b3569c89
Model: Raspberry Pi 3 Model B Plus Rev 1.3
Release:
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Error (Full Traceback):
Traceback (most recent call last):
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask/app.py”, line 1511, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask/app.py”, line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask_restx/api.py”, line 672, in error_router
return original_handler(e)
^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask/app.py”, line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask/app.py”, line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/flask_login/utils.py”, line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/mycodo/mycodo_flask/routes_dashboard.py”, line 135, in page_dashboard
utils_dashboard.widget_mod(form_base, request.form)
File “/opt/Mycodo/mycodo/mycodo_flask/utils/utils_dashboard.py”, line 312, in widget_mod
control.widget_add_refresh(mod_widget.unique_id)
File “/opt/Mycodo/mycodo/mycodo_client.py”, line 286, in widget_add_refresh
return self.proxy().widget_add_refresh(unique_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/Pyro5/client.py”, line 510, in call
return self.__send(self.__name, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/Mycodo/env/lib/python3.11/site-packages/Pyro5/client.py”, line 275, in _pyroInvoke
raise data # if you see this in your traceback, you should probably inspect the remote traceback as well
^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘widget_add_refresh’
Any help would be much appreciated
Regards
Thomas