mlte-team / mlte

An infrastructure for evaluating machine learning models.
http://mlte.rtfd.io/
MIT License
10 stars 3 forks source link

Adjust all API onResponse() interceptors to check for no errors #431

Closed sei-aderr closed 3 months ago

sei-aderr commented 4 months ago

It turns out onResponse() will fire even in the case of an error although it never seems to have caused issues before. Wrap all onResponse in an if(response.ok) to ensure they are not firing when they shouldn't be