{"action":"created","issue":{"url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/44","labels_url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/44/comments","events_url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/44/events","html_url":"https://github.com/othiym23/node-continuation-local-storage/issues/44","id":81918135,"number":44,"title":"Works with http request?","user":{"login":"iliakan","id":349336,"avatar_url":"https://avatars.githubusercontent.com/u/349336?v=3","gravatar_id":"","url":"https://api.github.com/users/iliakan","html_url":"https://github.com/iliakan","followers_url":"https://api.github.com/users/iliakan/followers","following_url":"https://api.github.com/users/iliakan/following{/other_user}","gists_url":"https://api.github.com/users/iliakan/gists{/gist_id}","starred_url":"https://api.github.com/users/iliakan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliakan/subscriptions","organizations_url":"https://api.github.com/users/iliakan/orgs","repos_url":"https://api.github.com/users/iliakan/repos","events_url":"https://api.github.com/users/iliakan/events{/privacy}","received_events_url":"https://api.github.com/users/iliakan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-28T13:05:33Z","updated_at":"2015-07-28T15:13:24Z","closed_at":null,"body":"HTTP requests from node seem to loose the context.\r\n\r\nIs there no async wrapper around http to keep context?\r\n\r\nI tried this, didn't work either:\r\n```js \r\n    ...\r\n    var ns = process.namespaces.app;\r\n    result= yield function(callback) {\r\n      request({\r\n        url: `${config.elastic.host}/${db}/${type}/_search`,\r\n        method: 'POST',\r\n        json: true,\r\n        body: queryBody\r\n      }, function(error, response, body) {\r\n        ns.bind(callback)(error, body);\r\n      });\r\n    };\r\n```\r\n\r\nDo I miss anything?"},"comment":{"url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/comments/125645461","html_url":"https://github.com/othiym23/node-continuation-local-storage/issues/44#issuecomment-125645461","issue_url":"https://api.github.com/repos/othiym23/node-continuation-local-storage/issues/44","id":125645461,"user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T15:13:24Z","updated_at":"2015-07-28T15:13:24Z","body":"@iliakan: As far as I can tell: yes. But I'm just an \"innocent bystander\" who ran into the same issue. I don't know how officially iojs is supported by these libraries. For iojs <=1.7.1 and all versions of node the current code works according to my tests."}}