abuiles / ember-cli-101-errata

18 stars 4 forks source link

delete friend #260

Open sunglee726 opened 7 years ago

sunglee726 commented 7 years ago

Everything was working up to editing a friend. But I typed in the code from pg 43 and 44 for deleting a friend and now I get "Could not find friends.index template or view" error and nothing shows up in the friends. What could be wrong and how do I fix it?

sunglee726 commented 7 years ago

I deleted the code the for delete friend and now that error is gone. I put in the code for delete again and now I get an adapter error. Error: Ember Data Request DELETE /friends/70 returned a 500 Payload (Empty Content-Type) [object Object] at AdapterError.EmberError (vendor.js:29828) at AdapterError (vendor.js:79096) at Class.handleResponse (vendor.js:80728) at ajaxError (vendor.js:81226) at Class.hash.error (vendor.js:80800) at fire (vendor.js:3519) at Object.fireWith [as rejectWith] (vendor.js:3649) at done (vendor.js:9091) at XMLHttpRequest. (vendor.js:9455)

shinynet commented 7 years ago

It's not just you. Even if you execute a delete operation using a rest client pointing to api.ember-101.com/friends/10 you get the response: {"errors":[{"title":"Internal Server Error","detail":"Internal Server Error","id":null,"href":null,"code":"500","source":null,"links":null,"status":"500","meta":null}]}

alexkarasik commented 7 years ago

I am having this same issue! Any resolutions?

cesaring commented 7 years ago

Me too, anyone find a work around???

gijsbotje commented 7 years ago

this issue is not fixed, correct? i still get the error ---- edit ---- The answer you can only delete records you made yourself The records that are already in the api are not allowed to be deleted