openwisp / openwisp-monitoring

Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
https://openwisp.io/docs/dev/monitoring/
Other
167 stars 114 forks source link

[bug] DashboardTimeseriesView does not handle unsupported time ranges #612

Closed pandafy closed 1 week ago

pandafy commented 2 weeks ago

Steps To Reproduce Steps to reproduce the behavior:

  1. Start the application
  2. Go to http://127.0.0.1:8000/api/v1/monitoring/dashboard/?timezone=Asia/Calcutta&time=5d

Expected behavior HTTP 400 response describing that the time period is not supported

Actual behavior HTTP 500 Server Error