{"action":"created","issue":{"url":"https://api.github.com/repos/PredixDev/px-login/issues/7","repository_url":"https://api.github.com/repos/PredixDev/px-login","labels_url":"https://api.github.com/repos/PredixDev/px-login/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/PredixDev/px-login/issues/7/comments","events_url":"https://api.github.com/repos/PredixDev/px-login/issues/7/events","html_url":"https://github.com/PredixDev/px-login/issues/7","id":138415737,"number":7,"title":"/userinfo error is not forwarded in case of error response","user":{"login":"btmurrell","id":634487,"avatar_url":"https://avatars.githubusercontent.com/u/634487?v=3","gravatar_id":"","url":"https://api.github.com/users/btmurrell","html_url":"https://github.com/btmurrell","followers_url":"https://api.github.com/users/btmurrell/followers","following_url":"https://api.github.com/users/btmurrell/following{/other_user}","gists_url":"https://api.github.com/users/btmurrell/gists{/gist_id}","starred_url":"https://api.github.com/users/btmurrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btmurrell/subscriptions","organizations_url":"https://api.github.com/users/btmurrell/orgs","repos_url":"https://api.github.com/users/btmurrell/repos","events_url":"https://api.github.com/users/btmurrell/events{/privacy}","received_events_url":"https://api.github.com/users/btmurrell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T08:37:49Z","updated_at":"2016-03-04T21:43:56Z","closed_at":null,"body":"in the case where /userinfo does not receive 200 response, the promise is rejected with no parameter.  the reject() function should pass the repsponse object so that the developer can consume to determine the error.\r\n\r\nthis causes a problem when session store is down (as reported in   #3) -- in my case, if i have no session (redis died) /userinfo returns a 503 with response body.  my handler for getUserInfo() needs to know response body in reject.  \r\n\r\nSee PR #6 for fix.\r\n"},"comment":{"url":"https://api.github.com/repos/PredixDev/px-login/issues/comments/192481535","html_url":"https://github.com/PredixDev/px-login/issues/7#issuecomment-192481535","issue_url":"https://api.github.com/repos/PredixDev/px-login/issues/7","id":192481535,"user":{"login":"mdwragg","id":3594714,"avatar_url":"https://avatars.githubusercontent.com/u/3594714?v=3","gravatar_id":"","url":"https://api.github.com/users/mdwragg","html_url":"https://github.com/mdwragg","followers_url":"https://api.github.com/users/mdwragg/followers","following_url":"https://api.github.com/users/mdwragg/following{/other_user}","gists_url":"https://api.github.com/users/mdwragg/gists{/gist_id}","starred_url":"https://api.github.com/users/mdwragg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdwragg/subscriptions","organizations_url":"https://api.github.com/users/mdwragg/orgs","repos_url":"https://api.github.com/users/mdwragg/repos","events_url":"https://api.github.com/users/mdwragg/events{/privacy}","received_events_url":"https://api.github.com/users/mdwragg/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T21:43:56Z","updated_at":"2016-03-04T21:43:56Z","body":"@ek - one for you, I know you're an expert in all things px-login now!"}}