Assertion Failed: `adaptererror` Expects Json-api Formatted Errors Array
After reading Handling Errors with Ember Data and numerous other tips and tricks on how to solve error handling in Ember JS, I still am not able to figure out what is wrong with my
Solution 1:
Figured it out. Is was simply that I didn't return an errors array. The correct error respons was:
{
"errors": [{
"source": {
"pointer": "user\/firstName"
},
"detail": "user.first_name.not_blank"
}, {
"source": {
"pointer": "user\/surName"
},
"detail": "user.sur_name.not_blank"
}, {
"source": {
"pointer": "user\/email"
},
"detail": "user.email.not_blank"
}]
}
Post a Comment for "Assertion Failed: `adaptererror` Expects Json-api Formatted Errors Array"