{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/13786","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/13786/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/13786/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/13786/events","html_url":"https://github.com/emberjs/ember.js/issues/13786","id":163568697,"number":13786,"title":"no model was found for plural-model-name","user":{"login":"NullVoxPopuli","id":199018,"avatar_url":"https://avatars.githubusercontent.com/u/199018?v=3","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Needs%20Submitter%20Response","name":"Needs Submitter Response","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-03T16:14:46Z","updated_at":"2016-07-03T17:30:02Z","closed_at":null,"body":"```\r\nDEBUG: -------------------------------\r\nDEBUG: Ember             : 2.6.1\r\nDEBUG: Ember Data        : 2.6.1\r\nDEBUG: jQuery            : 2.1.4\r\nDEBUG: Ember Simple Auth : 1.1.0-beta.3\r\nDEBUG: -------------------------------\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/199018/16546413/73feeada-4117-11e6-9ded-1df8666a846b.png)\r\n\r\nthis only happens sometimes, but it seems like it's not trying to singularize the `events` type to `event`.\r\n\r\nI have an `event` model, and if I refresh the page, I don't get `no model was found for 'events'`. So, not sure why this is happening only sometimes.\r\n\r\nHere is the action that triggers the request:\r\n\r\n```js\r\n\r\n    refreshStripe() {\r\n      let id = this.get('model.id');\r\n      let url = ENV.host + '/api/orders/' + id  + '/refresh_stripe';\r\n      let authToken = this.get('session.data.authenticated.token');\r\n\r\n      Ember.$.ajax({\r\n        url: url,\r\n        type: 'GET',\r\n        beforeSend(xhr) {\r\n          xhr.setRequestHeader('Authorization', 'Bearer ' + authToken);\r\n        }\r\n      }).then(data => {\r\n        this.get('store').push(data);\r\n      }, error => {\r\n        let json = JSON.parse(error.responseText);\r\n        let errors = json.errors;\r\n        this.get('flashMessages').alert(errors);\r\n      });\r\n    }\r\n```\r\n\r\nAny ideas?\r\n\r\nIf I find out any info that can help isolate, I'll post here."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/230164896","html_url":"https://github.com/emberjs/ember.js/issues/13786#issuecomment-230164896","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/13786","id":230164896,"user":{"login":"NullVoxPopuli","id":199018,"avatar_url":"https://avatars.githubusercontent.com/u/199018?v=3","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T17:30:02Z","updated_at":"2016-07-03T17:30:02Z","body":"thanks, I'll try to re-create in a twiddle"}}
{"actor":{"display_login":"NullVoxPopuli"}}