ember-cli-101-errata icon indicating copy to clipboard operation
ember-cli-101-errata copied to clipboard

delete friend

Open sunglee726 opened this issue 8 years ago • 5 comments

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 avatar Feb 07 '17 20:02 sunglee726

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)

sunglee726 avatar Feb 07 '17 23:02 sunglee726

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}]}

shinynet avatar Apr 01 '17 18:04 shinynet

I am having this same issue! Any resolutions?

alexkarasik avatar Apr 13 '17 14:04 alexkarasik

Me too, anyone find a work around???

cesaring avatar May 06 '17 05:05 cesaring

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

gijsbotje avatar Jul 20 '17 23:07 gijsbotje