Ember route GET erro API


#1

Good afternoon, I have the following error, when making request for my API. This is the output of the chrome console:

 warn.js:48
 WARNING: Encountered "0" in payload, but no model was found for model name "0" (resolved model name using (unknown mixin).modelNameFromPayloadKey("0"))
    WARNING: Encountered "1" in payload, but no model was found for model name "1" (resolved model name using (unknown mixin).modelNameFromPayloadKey("1"))
    WARNING: Encountered "2" in payload, but no model was found for model name "1" (resolved model name using (unknown mixin).modelNameFromPayloadKey("2"))
    WARNING: Encountered "3" in payload, but no model was found for model name "1" (resolved model name using (unknown mixin).modelNameFromPayloadKey("3"))
    WARNING: Encountered "4" in payload, but no model was found for model name "1" (resolved model name using (unknown mixin).modelNameFromPayloadKey("4"))

This is the result of my api on the GET route:

[
    {
        "_id": "59aed891c8548dd26fa32fa0",
        "name": "NodeJS Power",
        "description": "Livro para desenolvedores NodeJS",
        "price": 100
    },
    {
        "_id": "59b1c83668124ae7d175c725",
        "name": "Javascript Guia do Programador",
        "description": "Livro para programadores javascript",
        "price": 250
    },
    {
        "_id": "59b29daf6411f74cae4cad12",
        "name": "Pro Node.js para Desenvolvedores",
        "description": "Livro para Desenvolvedores Nodejs",
        "price": 250
    },
    {
        "_id": "59b2dd401ad1990141a5bc86",
        "name": "AngularJS",
        "description": "Guia AngularJS",
        "price": 150
    }
]

My serializer:

import DS from 'ember-data';

export default DS.RESTSerializer.extend({
  primaryKey: '_id',
  serializeId: function(id) {
    return id.toString();
  }
});

My controller:

import Ember from 'ember';

export default Ember.Controller.extend({
  name: null,
  queryParams: ['name']
});

My adapter:

import DS from 'ember-data';

export default DS.RESTAdapter.extend({
  host: 'http://localhost:3000',
  primaryKey: '_id'
});

My model:

import DS from 'ember-data';

export default DS.Model.extend({
  name: DS.attr('string'),
  description: DS.attr('string'),
  price: DS.attr('number')
});

My route products:

import Ember from 'ember';

export default Ember.Route.extend({

  model(params) {
    return this.get('store').find('product', params.id);
  }
});