{"action":"opened","issue":{"url":"https://api.github.com/repos/request/request-promise/issues/152","repository_url":"https://api.github.com/repos/request/request-promise","labels_url":"https://api.github.com/repos/request/request-promise/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/request/request-promise/issues/152/comments","events_url":"https://api.github.com/repos/request/request-promise/issues/152/events","html_url":"https://github.com/request/request-promise/issues/152","id":173328555,"number":152,"title":"rp(...).tap is not a function","user":{"login":"ReedD","id":4931683,"avatar_url":"https://avatars.githubusercontent.com/u/4931683?v=3","gravatar_id":"","url":"https://api.github.com/users/ReedD","html_url":"https://github.com/ReedD","followers_url":"https://api.github.com/users/ReedD/followers","following_url":"https://api.github.com/users/ReedD/following{/other_user}","gists_url":"https://api.github.com/users/ReedD/gists{/gist_id}","starred_url":"https://api.github.com/users/ReedD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReedD/subscriptions","organizations_url":"https://api.github.com/users/ReedD/orgs","repos_url":"https://api.github.com/users/ReedD/repos","events_url":"https://api.github.com/users/ReedD/events{/privacy}","received_events_url":"https://api.github.com/users/ReedD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T22:42:57Z","updated_at":"2016-08-25T22:42:57Z","closed_at":null,"body":"If you try calling [`.tap`](http://bluebirdjs.com/docs/api/tap.html) directly after calling `rp` it gives an error. \r\n\r\n```\r\nrp('https://google.com')\r\n    .tap(console.log);\r\n// Error -> rp(...).tap is not a function\r\n\r\nrp('https://google.com')\r\n    .then(function (htmlString) {\r\n        // Process html...\r\n        return result;\r\n    })\r\n    .tap(console.log);\r\n// Success\r\n```\r\n\r\nSimilarly I tried this with [`.return`](http://bluebirdjs.com/docs/api/return.html) and got the same error result.\r\n\r\n```\r\nrp('https://google.com')\r\n    .return(200)\r\n// Error -> rp(...).return is not a function\r\n```\r\n"}}
{"actor":{"display_login":"ReedD"}}