-
Notifications
You must be signed in to change notification settings - Fork 160
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
Initial setup fails #437
Comments
I also encountered the same problem. Have you solved it? flask_monitoringdashboard-3.1.2 When I visit http://127.0.0.1:5000/dashboard/overview, displays have been loaded and error, I have the correct configuration database (although no data in the database, but create a few tables)
|
Hi, @cyx200902. Unofrtunately, I have not solved the issue yet. |
Thanks for reply~ I tried to read the code and found that it was possible that my flask app was not properly bound, but there is still no solution.Do you have any good solutions or alternatives to this? |
Hi guys. I had this issue too, first of all, check this topic #435 and make sure you bind the MonitoringDashboard after registering your blueprints (or routes):
after that, the problem is still there but after 1 request it will be solved. actually, this problem is just for when there are no requests on the dashboard. |
Thanks for answering the question @amirhnir ! |
I guess in the future we could try to detect the two situations (bound too late, or no requests yet) programmatically and provide the user with a useful message instead of the crash! I'll makr this issue as helpwanted because I think it should not be too hard to implement for somebody that has a bit of time on their hands. |
Can confirm that binding the dashboard after initializing all the routes fixes the issue, as per #435. It would probably be a good idea to mention this detail in the setup section of the README. |
Thanks a lot for confirming @Cornul11 . Do you want to add the note to the Readme.md and send a PR with it? I'll be happy to merge it in! |
Its a good idea but technically It doesn't solve the problem because even after this, the issue persists until the first request is received |
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:
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):
Additional context
Here is the console log when the issue arises:
The text was updated successfully, but these errors were encountered: