aurelia-breeze icon indicating copy to clipboard operation
aurelia-breeze copied to clipboard

2.2.0 has broken error processing

Open rockResolve opened this issue 8 years ago • 0 comments

The "ajax adapter didn't report error properly" v2.2.0 commit no longer sets an error's data. Use case: 500 errors (e.g. invalid save) no longer return error.message.

The commit no longer processes response.json in promise reject. While the standard fetch api only returns network errors via the promise reject, aurelia-fetch adds a response rejectOnError interceptor. The interceptor returns any response with ok = false via the promise reject.

I am not sure how to correct as I dont know what the "ajax adapter didn't report error properly" problem was that this commit was trying to fix. I cant find the issue.

rockResolve avatar Dec 12 '16 22:12 rockResolve