{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-connector/issues/1","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-connector/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-connector/issues/1/comments","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-connector/issues/1/events","html_url":"https://github.com/OpenBazaar/openbazaar-connector/issues/1","id":79204433,"number":1,"title":"Connector not accepting `$PORT` and `$IP` as parameters","user":{"login":"theblacksquid","id":8486135,"avatar_url":"https://avatars.githubusercontent.com/u/8486135?v=3","gravatar_id":"","url":"https://api.github.com/users/theblacksquid","html_url":"https://github.com/theblacksquid","followers_url":"https://api.github.com/users/theblacksquid/followers","following_url":"https://api.github.com/users/theblacksquid/following{/other_user}","gists_url":"https://api.github.com/users/theblacksquid/gists{/gist_id}","starred_url":"https://api.github.com/users/theblacksquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theblacksquid/subscriptions","organizations_url":"https://api.github.com/users/theblacksquid/orgs","repos_url":"https://api.github.com/users/theblacksquid/repos","events_url":"https://api.github.com/users/theblacksquid/events{/privacy}","received_events_url":"https://api.github.com/users/theblacksquid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-21T23:35:53Z","updated_at":"2015-05-22T16:34:46Z","closed_at":"2015-05-22T16:34:46Z","body":"I'm using a Cloud9 hosted workspace, and I'm trying to query the contract I've set up on the store that I have running on that workspace using\r\n\r\n    var connector = require('openbazaar-connector')('$IP', '$PORT');\r\n\r\n    connector.query_contracts(\r\n        function(data) {\r\n            console.log(summarize(data));\r\n        }\r\n    );\r\n\r\n    function summarize(data) {\r\n        return JSON.stringify(data);\r\n    }\r\n\r\nIt returns this [error](https://gist.github.com/theblacksquid/6a82bbe495ccf433633d).\r\n\r\nIn Cloud9, your running web apps need to have `$PORT` and `$IP` as their port and ip addresses respectively in order to run successfully. \r\nI got my OB instance running using [these instructions](http://www.reddit.com/r/OpenBazaar/comments/36srci/installing_and_running_ob_on_cloud9/)\r\n\r\n"}}