@DevGuy wrote:
Hello, I am not sure what this error is telling me and most of all how to go about fixing it.
Error while processing route: index Assertion Failed: Encountered a resource object with an undefined type (resolved resource using connect@serializer:application:) Error: Assertion Failed: Encountered a resource object with an undefined type (resolved resource using connect@serializer:application:) at new Error (native) at Error.EmberError (http://localhost:4200/assets/vendor.js:26885:21) at assert (http://localhost:4200/assets/vendor.js:16833:13) at Object.assert (http://localhost:4200/assets/vendor.js:26655:34) at assert (http://localhost:4200/assets/vendor.js:67485:37) at _normalizeResourceHelper (http://localhost:4200/assets/vendor.js:79391:41) at _normalizeDocumentHelper (http://localhost:4200/assets/vendor.js:79352:25) at _normalizeResponse (http://localhost:4200/assets/vendor.js:79436:36) at normalizeArrayResponse (http://localhost:4200/assets/vendor.js:80142:19) at normalizeFindAllResponse (http://localhost:4200/assets/vendor.js:80012:42)logError @ ember.debug.js:27966defaultActionHandlers.error @ ember.debug.js:27909triggerEvent @ ember.debug.js:28025trigger @ ember.debug.js:52525Transition.trigger @ ember.debug.js:52339(anonymous function) @ ember.debug.js:52159tryCatch @ ember.debug.js:52858invokeCallback @ ember.debug.js:52873publish @ ember.debug.js:52841publishRejection @ ember.debug.js:52776(anonymous function) @ ember.debug.js:31434Queue.invoke @ ember.debug.js:327Queue.flush @ ember.debug.js:391DeferredActionQueues.flush @ ember.debug.js:192Backburner.end @ ember.debug.js:570Backburner.run @ ember.debug.js:692Backburner.join @ ember.debug.js:712run.join @ ember.debug.js:20631hash.success @ rest.js:745fire @ jquery.js:3148self.fireWith @ jquery.js:3260done @ jquery.js:9314callback @ jquery.js:9718 ember.debug.js:52499 Transition #0: index: transition was aborted
I am fetching data from mongodb via node, my returned data looks like this:
$ curl http://localhost:3000/api/guests {"data":[{"_id":"56b7ecbc1ef21172377d6159","name":"Ray","message":"First ever guest post entry"},{"_id":"56b7ecbc1ef21172377d615a","name":"Sam","message":"Sam like the new guest post page"}]}
Posts: 3
Participants: 2