{"action":"created","issue":{"url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/45","repository_url":"https://api.github.com/repos/ForbesLindesay/sync-request","labels_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/45/comments","events_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/45/events","html_url":"https://github.com/ForbesLindesay/sync-request/issues/45","id":136503463,"number":45,"title":"Error: The method must be a string.","user":{"login":"empierre","id":7287178,"avatar_url":"https://avatars.githubusercontent.com/u/7287178?v=3","gravatar_id":"","url":"https://api.github.com/users/empierre","html_url":"https://github.com/empierre","followers_url":"https://api.github.com/users/empierre/followers","following_url":"https://api.github.com/users/empierre/following{/other_user}","gists_url":"https://api.github.com/users/empierre/gists{/gist_id}","starred_url":"https://api.github.com/users/empierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/empierre/subscriptions","organizations_url":"https://api.github.com/users/empierre/orgs","repos_url":"https://api.github.com/users/empierre/repos","events_url":"https://api.github.com/users/empierre/events{/privacy}","received_events_url":"https://api.github.com/users/empierre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T20:34:20Z","updated_at":"2016-02-25T20:35:30Z","closed_at":null,"body":"works fine in a standalone module, but inside an express I have this:\r\n\r\n/usr/bin/node /home/in/MyDomoAtHome-nodejs/mdah.js\r\n/home/in/MyDomoAtHome-nodejs/node_modules/sync-request/index.js:37\r\n    throw new Error(response.error.message || response.error || response);\r\n    ^\r\n\r\nError: The method must be a string.\r\n    at doRequest (/home/in/MyDomoAtHome-nodejs/node_modules/sync-request/index.js:37:11)\r\n    at getLastVersion (/home/in/MyDomoAtHome-nodejs/mdah.js:69:9)\r\n    at Object.<anonymous> (/home/in/MyDomoAtHome-nodejs/mdah.js:40:19)\r\n    at Module._compile (module.js:413:34)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Function.Module.runMain (module.js:447:10)\r\n    at startup (node.js:140:18)\r\n    at node.js:1001:3\r\n\r\nProcess finished with exit code 1"},"comment":{"url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/comments/188970900","html_url":"https://github.com/ForbesLindesay/sync-request/issues/45#issuecomment-188970900","issue_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/45","id":188970900,"user":{"login":"empierre","id":7287178,"avatar_url":"https://avatars.githubusercontent.com/u/7287178?v=3","gravatar_id":"","url":"https://api.github.com/users/empierre","html_url":"https://github.com/empierre","followers_url":"https://api.github.com/users/empierre/followers","following_url":"https://api.github.com/users/empierre/following{/other_user}","gists_url":"https://api.github.com/users/empierre/gists{/gist_id}","starred_url":"https://api.github.com/users/empierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/empierre/subscriptions","organizations_url":"https://api.github.com/users/empierre/orgs","repos_url":"https://api.github.com/users/empierre/repos","events_url":"https://api.github.com/users/empierre/events{/privacy}","received_events_url":"https://api.github.com/users/empierre/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T20:35:30Z","updated_at":"2016-02-25T20:35:30Z","body":"ahhh... it overloads  var request = require(\"request\") ...\r\n\r\nis there a way to disenbiguate ?\r\n"}}