{"action":"closed","issue":{"url":"https://api.github.com/repos/canjs/can-connect/issues/153","repository_url":"https://api.github.com/repos/canjs/can-connect","labels_url":"https://api.github.com/repos/canjs/can-connect/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/canjs/can-connect/issues/153/comments","events_url":"https://api.github.com/repos/canjs/can-connect/issues/153/events","html_url":"https://github.com/canjs/can-connect/issues/153","id":179211212,"number":153,"title":"How to handle can-connect errors correcly when connecting to a RESTful API","user":{"login":"nriesco","id":1995514,"avatar_url":"https://avatars3.githubusercontent.com/u/1995514?v=3","gravatar_id":"","url":"https://api.github.com/users/nriesco","html_url":"https://github.com/nriesco","followers_url":"https://api.github.com/users/nriesco/followers","following_url":"https://api.github.com/users/nriesco/following{/other_user}","gists_url":"https://api.github.com/users/nriesco/gists{/gist_id}","starred_url":"https://api.github.com/users/nriesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nriesco/subscriptions","organizations_url":"https://api.github.com/users/nriesco/orgs","repos_url":"https://api.github.com/users/nriesco/repos","events_url":"https://api.github.com/users/nriesco/events{/privacy}","received_events_url":"https://api.github.com/users/nriesco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T12:10:16Z","updated_at":"2017-04-19T01:03:16Z","closed_at":"2017-04-19T01:03:16Z","body":"Please take a look to this stack overflow question: \nhttp://stackoverflow.com/questions/39677050/how-to-handle-can-connect-errors-correcly-when-connecting-to-a-restful-api\n\nHere's an example code: (you'll need a RESTful API with the example data provided)\nhttp://jsbin.com/gofowa/edit?html,output\n\n```\n// calling http://localhost:3030/api/posts should return an array containing an object like this one:\n{\n    \"_id\" : ObjectId(\"57e5c23dcf70362681f71d21\"),\n    \"createdAt\" : ISODate(\"2016-09-24T00:40:09.364Z\"),\n    \"updatedAt\" : ISODate(\"2016-09-24T00:40:09.364Z\"),\n    \"name\" : \"this is my name!\",\n    \"address\" : {\n        \"_id\" : ObjectId(\"57e7fcddb62902345d9d9e47\"),\n        \"street\" : \"Morewood Ave\",\n        \"number\" : 111222\n    },\n    \"addresses\" : [ \n        {\n            \"_id\" : ObjectId(\"57e62daf4c12492b34b5ca0e\"),\n            \"number\" : 66,\n            \"street\" : \"Some Ave\"\n        }, \n        {\n            \"_id\" : ObjectId(\"57e62daf4c12492b34b5ca01\"),\n            \"number\" : 77,\n            \"street\" : \"People St\"\n        }\n    ]\n}\n```\n"}}
{"actor":{"display_login":"justinbmeyer"}}