{"action":"created","issue":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/782","labels_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/782/comments","events_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/782/events","html_url":"https://github.com/simplabs/ember-simple-auth/issues/782","id":116610494,"number":782,"title":"Silently failing, rejecting promise...","user":{"login":"devinrhode2","id":539816,"avatar_url":"https://avatars.githubusercontent.com/u/539816?v=3","gravatar_id":"","url":"https://api.github.com/users/devinrhode2","html_url":"https://github.com/devinrhode2","followers_url":"https://api.github.com/users/devinrhode2/followers","following_url":"https://api.github.com/users/devinrhode2/following{/other_user}","gists_url":"https://api.github.com/users/devinrhode2/gists{/gist_id}","starred_url":"https://api.github.com/users/devinrhode2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinrhode2/subscriptions","organizations_url":"https://api.github.com/users/devinrhode2/orgs","repos_url":"https://api.github.com/users/devinrhode2/repos","events_url":"https://api.github.com/users/devinrhode2/events{/privacy}","received_events_url":"https://api.github.com/users/devinrhode2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T18:27:20Z","updated_at":"2015-11-17T22:12:10Z","closed_at":"2015-11-17T22:12:10Z","body":"I first asked this question on stack overflow here: http://stackoverflow.com/questions/33665152/ember-simple-auth-session-not-getting-authenticated-after-calling-resolve-in-cus but I have now figured out that there is a failure happening deep in ember-simple-auth and the error is not appearing anywhere... \r\n\r\nI'm going to try and fill in more details.. cc @marcoow \r\n\r\nThe scenario where a developer, such as myself, get's lost is, when writing a custom authenticator, if they have a syntax error in their authenticate promise:\r\n```js\r\nimport Ember from 'ember';\r\nimport Base from 'simple-auth/authenticators/base';\r\n\r\nexport default Base.extend({\r\n  authenticate: function(email, password, authenticateCallback) {\r\n    //returning new Promise or new Ember.RSVP.Promise resulted in simple-auth's then callback not getting called.\r\n    //returning a $.ajax, we can be sure the .then callbacks get called; and this works, whereas new Promise doesn't, for some reason..\r\n    console.log('custom authenticator authenticate..')\r\n    return new Ember.RSVP.Promise(function(resolve, reject) {\r\n      throw new SyntaxError('foo') // <-- Developers need to find out about any syntax error causing an auto-rejection..\r\n```\r\nThey will probably not find out about it (unless they are listening to the authentication failed event..\r\n\r\nRelevent code in ember-simple-auth: https://github.com/simplabs/ember-simple-auth/blob/master/addon/internal-session.js#L24"},"comment":{"url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/comments/157525500","html_url":"https://github.com/simplabs/ember-simple-auth/issues/782#issuecomment-157525500","issue_url":"https://api.github.com/repos/simplabs/ember-simple-auth/issues/782","id":157525500,"user":{"login":"devinrhode2","id":539816,"avatar_url":"https://avatars.githubusercontent.com/u/539816?v=3","gravatar_id":"","url":"https://api.github.com/users/devinrhode2","html_url":"https://github.com/devinrhode2","followers_url":"https://api.github.com/users/devinrhode2/followers","following_url":"https://api.github.com/users/devinrhode2/following{/other_user}","gists_url":"https://api.github.com/users/devinrhode2/gists{/gist_id}","starred_url":"https://api.github.com/users/devinrhode2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinrhode2/subscriptions","organizations_url":"https://api.github.com/users/devinrhode2/orgs","repos_url":"https://api.github.com/users/devinrhode2/repos","events_url":"https://api.github.com/users/devinrhode2/events{/privacy}","received_events_url":"https://api.github.com/users/devinrhode2/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T22:12:10Z","updated_at":"2015-11-17T22:12:10Z","body":"Handling in other threads."}}