Open
Description
Firstly, thanks to the maintainers for their great work!
Describe the bug
Installing and setting up the dashboard leads to an Exception after logging in.
Moreover, on the Configuration page, the "First request in the currently deployed version" field shows; aN-aN-NaN aN:aN, which is probably related.
To Reproduce
Steps to reproduce the behaviour:
- Install the dashboard
- Bind it to the app
- Open the dashboard
- Log in
- See the main overview graph endlessly loading
Expected behaviour
It is quite clear that the expected behaviour is to have the dashboard overview page loading properly.
Screenshots
NA
Desktop (please complete the following information):
- OS: Microsoft Windows 11
- Browser chrome
- FMD Version: 3.1.2
Additional context
Here is the console log when the issue arises:
127.0.0.1 - - [15/Nov/2023 09:40:54] "GET /dashboard/api/deploy_config HTTP/1.1" 200 -
127.0.0.1 - - [15/Nov/2023 09:41:12] "GET /dashboard/api/overview HTTP/1.1" 200 -
[2023-11-15 09:41:13,014] ERROR in app: Exception on /dashboard/api/deploy_details [GET]
Traceback (most recent call last):
File "\flaskProject\venv\lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "\flaskProject\venv\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "\flaskProject\venv\lib\site-packages\flask_restful\__init__.py", line 298, in error_router
return original_handler(e)
File "\flaskProject\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "\flaskProject\venv\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "\flaskProject\venv\lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "\flaskProject\venv\lib\site-packages\flask_monitoringdashboard\core\auth.py", line 39, in wrapper
return func(*args, **kwargs)
File "\flaskProject\venv\lib\site-packages\flask_monitoringdashboard\views\deployment.py", line 21, in deploy_details
datetime.datetime.fromtimestamp(details['first-request'])
OSError: [Errno 22] Invalid argument
127.0.0.1 - - [15/Nov/2023 09:41:13] "GET /dashboard/api/deploy_details HTTP/1.1" 500 -