{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/2673","repository_url":"https://api.github.com/repos/request/request","labels_url":"https://api.github.com/repos/request/request/issues/2673/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/2673/comments","events_url":"https://api.github.com/repos/request/request/issues/2673/events","html_url":"https://github.com/request/request/issues/2673","id":232621766,"node_id":"MDU6SXNzdWUyMzI2MjE3NjY=","number":2673,"title":"request should provide a custom util.promisified() version","user":{"login":"addaleax","id":899444,"node_id":"MDQ6VXNlcjg5OTQ0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/899444?v=4","gravatar_id":"","url":"https://api.github.com/users/addaleax","html_url":"https://github.com/addaleax","followers_url":"https://api.github.com/users/addaleax/followers","following_url":"https://api.github.com/users/addaleax/following{/other_user}","gists_url":"https://api.github.com/users/addaleax/gists{/gist_id}","starred_url":"https://api.github.com/users/addaleax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addaleax/subscriptions","organizations_url":"https://api.github.com/users/addaleax/orgs","repos_url":"https://api.github.com/users/addaleax/repos","events_url":"https://api.github.com/users/addaleax/events{/privacy}","received_events_url":"https://api.github.com/users/addaleax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-31T16:23:36Z","updated_at":"2019-12-06T20:16:08Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Code like\r\n\r\n```js\r\nrequest('https://example.com', (error, response, body) => {\r\n  ...\r\n});\r\n```\r\n\r\ncan’t be promisified through the usual [`util.promisify()`](https://nodejs.org/api/util.html#util_util_promisify_original) function in Node 8.x because it goes beyond the standard `(error, result) => …` callback pattern. It should be pretty easy to fix that by providing a [custom implementation](https://nodejs.org/api/util.html#util_custom_promisified_functions) that gives e.g. a Promise for a `{response, body}` object.\r\n\r\nI know there’s `request-promise`, and I can’t really tell how much of `request` this affects, but it would be awesome if a library that is this popular had even just very simple support for it."},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/562722259","html_url":"https://github.com/request/request/issues/2673#issuecomment-562722259","issue_url":"https://api.github.com/repos/request/request/issues/2673","id":562722259,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MjcyMjI1OQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-12-06T20:16:08Z","updated_at":"2019-12-06T20:16:08Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}