The dashboard fails to display data due to backend endpoints /api/power & /api/terros generating 500 errors when handling requests with positive timezone offsets (+XX:XX). Requests with negative offsets (-XX:XX) work as expected.
Local server logs suggest a ValidationError related to startTime and endTime query parameters, indicating an issue with datetime format validation (Marshmallow schema).
Server logs
Bug Description
The dashboard fails to display data due to backend endpoints
/api/power
&/api/terros
generating 500 errors when handling requests with positive timezone offsets (+XX:XX). Requests with negative offsets (-XX:XX) work as expected.Issue Demonstration:
+05:30
offset): Link to failing request-02:00
offset): Link to successful requestLocal server logs suggest a
ValidationError
related tostartTime
andendTime
query parameters, indicating an issue with datetime format validation (Marshmallow schema). Server logsSteps to Reproduce
Alternatively:
Expected Behavior
The backend should correctly process requests across all timezones or potentially become timezone agnostic by standardising to a single timezone.
Screenshots
Environment