{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/969","repository_url":"https://api.github.com/repos/visionmedia/superagent","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/969/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/969/events","html_url":"https://github.com/visionmedia/superagent/issues/969","id":150052704,"number":969,"title":"There is no text or body on 503","user":{"login":"Redsandro","id":1702193,"avatar_url":"https://avatars.githubusercontent.com/u/1702193?v=3","gravatar_id":"","url":"https://api.github.com/users/Redsandro","html_url":"https://github.com/Redsandro","followers_url":"https://api.github.com/users/Redsandro/followers","following_url":"https://api.github.com/users/Redsandro/following{/other_user}","gists_url":"https://api.github.com/users/Redsandro/gists{/gist_id}","starred_url":"https://api.github.com/users/Redsandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redsandro/subscriptions","organizations_url":"https://api.github.com/users/Redsandro/orgs","repos_url":"https://api.github.com/users/Redsandro/repos","events_url":"https://api.github.com/users/Redsandro/events{/privacy}","received_events_url":"https://api.github.com/users/Redsandro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-04-21T11:57:31Z","updated_at":"2016-12-13T13:56:25Z","closed_at":"2016-12-13T13:56:25Z","body":"Currently (superagent `1.8.x`), when Superagent encounters a `503`, it throws an error: `Service Unavailable`. Older versions return with `res`, `res.ok` being `false`, `res.error` being `Error: cannot POST / (503)`.\n\nHowever, there is no `res.text` or `res.body` even though the server actually returns data. I've encountered this, and it took me a while before I figured that Superagent ignores the body:\n\n`Status: 503`\n\n```\n<html>\n    <head>\n        <title>Server Too Busy</title>\n    </head>\n    <body>\n          Server Too Busy. Spread your requests:\n          - server1.domain.com\n          - server2.domain.com\n          - server3.domain.com\n          - server4.domain.com\n     </body>\n</html>\n```\n"},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/266744415","html_url":"https://github.com/visionmedia/superagent/issues/969#issuecomment-266744415","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/969","id":266744415,"user":{"login":"pornel","id":72159,"avatar_url":"https://avatars.githubusercontent.com/u/72159?v=3","gravatar_id":"","url":"https://api.github.com/users/pornel","html_url":"https://github.com/pornel","followers_url":"https://api.github.com/users/pornel/followers","following_url":"https://api.github.com/users/pornel/following{/other_user}","gists_url":"https://api.github.com/users/pornel/gists{/gist_id}","starred_url":"https://api.github.com/users/pornel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pornel/subscriptions","organizations_url":"https://api.github.com/users/pornel/orgs","repos_url":"https://api.github.com/users/pornel/repos","events_url":"https://api.github.com/users/pornel/events{/privacy}","received_events_url":"https://api.github.com/users/pornel/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T13:56:25Z","updated_at":"2016-12-13T13:56:25Z","body":"It should be in `err.response.body`. We also have `.ok(() => true)` now to catch all error pages."}}
{"actor":{"display_login":"pornel"}}