{"action":"created","issue":{"url":"https://api.github.com/repos/request/request-promise/issues/130","repository_url":"https://api.github.com/repos/request/request-promise","labels_url":"https://api.github.com/repos/request/request-promise/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/request/request-promise/issues/130/comments","events_url":"https://api.github.com/repos/request/request-promise/issues/130/events","html_url":"https://github.com/request/request-promise/issues/130","id":161181829,"number":130,"title":"Using proxy","user":{"login":"omidn","id":3722901,"avatar_url":"https://avatars.githubusercontent.com/u/3722901?v=3","gravatar_id":"","url":"https://api.github.com/users/omidn","html_url":"https://github.com/omidn","followers_url":"https://api.github.com/users/omidn/followers","following_url":"https://api.github.com/users/omidn/following{/other_user}","gists_url":"https://api.github.com/users/omidn/gists{/gist_id}","starred_url":"https://api.github.com/users/omidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omidn/subscriptions","organizations_url":"https://api.github.com/users/omidn/orgs","repos_url":"https://api.github.com/users/omidn/repos","events_url":"https://api.github.com/users/omidn/events{/privacy}","received_events_url":"https://api.github.com/users/omidn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-20T12:16:57Z","updated_at":"2016-07-09T20:44:03Z","closed_at":null,"body":"I'm wondering if it is possible to use proxy with request-promise too as for the original [`request`](https://github.com/request/request/) module.\r\n\r\nhere is explained how to set a proxy to tor in `request`, but providing the same options for `request-promise` seem not to be working..\r\n\r\n[Link to example](https://github.com/request/request/tree/master/examples#proxys)\r\n \r\nI am trying something like this now, which seem to be failed..\r\n\r\n```\t\t\r\nconst response = yield rp({\r\n\t\t    resolveWithFullResponse: true,\r\n\t\t    uri: uri,\r\n\t\t    agentClass: Agent,\r\n\t\t    agentOptions: {\r\n\t\t\t    socksHost: 'localhost', // Defaults to 'localhost'.\r\n\t\t\t    socksPort: 9150 // Defaults to 1080.\r\n\t\t    }\r\n\t\t});\r\n```\r\n\r\nI tried it again with `request` module and it is working.."},"comment":{"url":"https://api.github.com/repos/request/request-promise/issues/comments/231554912","html_url":"https://github.com/request/request-promise/issues/130#issuecomment-231554912","issue_url":"https://api.github.com/repos/request/request-promise/issues/130","id":231554912,"user":{"login":"analog-nico","id":1407390,"avatar_url":"https://avatars.githubusercontent.com/u/1407390?v=3","gravatar_id":"","url":"https://api.github.com/users/analog-nico","html_url":"https://github.com/analog-nico","followers_url":"https://api.github.com/users/analog-nico/followers","following_url":"https://api.github.com/users/analog-nico/following{/other_user}","gists_url":"https://api.github.com/users/analog-nico/gists{/gist_id}","starred_url":"https://api.github.com/users/analog-nico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/analog-nico/subscriptions","organizations_url":"https://api.github.com/users/analog-nico/orgs","repos_url":"https://api.github.com/users/analog-nico/repos","events_url":"https://api.github.com/users/analog-nico/events{/privacy}","received_events_url":"https://api.github.com/users/analog-nico/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T20:44:03Z","updated_at":"2016-07-09T20:44:03Z","body":"Did you find something out worth sharing @omidn ?"}}
{"actor":{"display_login":"analog-nico"}}