middlewarehq / middleware

✨ Open-source DORA metrics platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
1.17k stars 100 forks source link

Improve error handling on the flask backend #561

Open jayantbh opened 1 month ago

jayantbh commented 1 month ago

Description:

Right now errors from the flask backend are often returned as HTML errors instead of a more system parseable JSON style error.

We should change that such that flash returns errors as JSON instead. https://flask.palletsprojects.com/en/2.3.x/errorhandling/

dominicghizzoni commented 1 month ago

could you assign this to me?

jayantbh commented 1 month ago

Sure, @dominicghizzoni

larrikin-coder commented 1 month ago

is te issue still open @dominicghizzoni ? If it is please assign me this issue.

dominicghizzoni commented 1 month ago

is te issue still open @dominicghizzoni ? If it is please assign me this issue.

yes you may continue my work on it

jayantbh commented 1 month ago

@larrikin-coder, there's an existing PR for it, #567 You may decide to continue on that (or look at the review already done on that) as a starting point.