{"action":"created","issue":{"url":"https://api.github.com/repos/ruipgil/scraperjs/issues/41","labels_url":"https://api.github.com/repos/ruipgil/scraperjs/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/ruipgil/scraperjs/issues/41/comments","events_url":"https://api.github.com/repos/ruipgil/scraperjs/issues/41/events","html_url":"https://github.com/ruipgil/scraperjs/issues/41","id":99111870,"number":41,"title":"Dynamic example fails on OpenShift instance","user":{"login":"rvernica","id":241185,"avatar_url":"https://avatars.githubusercontent.com/u/241185?v=3","gravatar_id":"","url":"https://api.github.com/users/rvernica","html_url":"https://github.com/rvernica","followers_url":"https://api.github.com/users/rvernica/followers","following_url":"https://api.github.com/users/rvernica/following{/other_user}","gists_url":"https://api.github.com/users/rvernica/gists{/gist_id}","starred_url":"https://api.github.com/users/rvernica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvernica/subscriptions","organizations_url":"https://api.github.com/users/rvernica/orgs","repos_url":"https://api.github.com/users/rvernica/repos","events_url":"https://api.github.com/users/rvernica/events{/privacy}","received_events_url":"https://api.github.com/users/rvernica/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-05T03:55:33Z","updated_at":"2015-08-05T22:47:45Z","closed_at":"2015-08-05T05:17:21Z","body":"I am using `scraperjs@0.3.4` on an [OpenShift](https://www.openshift.com/) instance. I am trying the examples on the [README](https://github.com/ruipgil/scraperjs#lets-scrape-hacker-news-with-both-scrapers) page. The static example works, but the dynamic one fails with a strange error. Any hints?\r\n\r\nI would expect it might be due to the limited environment available on OpenShift instances and I wonder what is the cause so I can try to fix it.\r\n\r\n```\r\n> cat > static.js\r\nvar scraperjs = require('scraperjs');\r\nscraperjs.StaticScraper.create('https://news.ycombinator.com/')\r\n    .scrape(function($) {\r\n        return $(\".title a\").map(function() {\r\n            return $(this).text();\r\n        }).get();\r\n    }, function(news) {\r\n        console.log(news);\r\n    })\r\n> node static.js \r\n[ 'Show HN: My SSH server knows who you are',\r\n  'Show HN: JAWS – A JavaScript and AWS Stack',\r\n  'Federal Judge Strikes Down Idaho ‘Ag-Gag Law’',\r\n...\r\n```\r\n\r\n```\r\n> cat > dynamic.js\r\nvar scraperjs = require('scraperjs');\r\nscraperjs.DynamicScraper.create('https://news.ycombinator.com/')\r\n    .scrape(function() {\r\n        return $(\".title a\").map(function() {\r\n            return $(this).text();\r\n        }).get();\r\n    }, function(news) {\r\n        console.log(news);\r\n    })\r\n> node dynamic.js \r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: listen EACCES\r\n    at errnoException (net.js:905:11)\r\n    at Server._listen2 (net.js:1024:19)\r\n    at listen (net.js:1065:10)\r\n    at net.js:1147:9\r\n    at asyncCallback (dns.js:68:16)\r\n    at Object.onanswer [as oncomplete] (dns.js:121:9)\r\n```"},"comment":{"url":"https://api.github.com/repos/ruipgil/scraperjs/issues/comments/128173528","html_url":"https://github.com/ruipgil/scraperjs/issues/41#issuecomment-128173528","issue_url":"https://api.github.com/repos/ruipgil/scraperjs/issues/41","id":128173528,"user":{"login":"ruipgil","id":952530,"avatar_url":"https://avatars.githubusercontent.com/u/952530?v=3","gravatar_id":"","url":"https://api.github.com/users/ruipgil","html_url":"https://github.com/ruipgil","followers_url":"https://api.github.com/users/ruipgil/followers","following_url":"https://api.github.com/users/ruipgil/following{/other_user}","gists_url":"https://api.github.com/users/ruipgil/gists{/gist_id}","starred_url":"https://api.github.com/users/ruipgil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruipgil/subscriptions","organizations_url":"https://api.github.com/users/ruipgil/orgs","repos_url":"https://api.github.com/users/ruipgil/repos","events_url":"https://api.github.com/users/ruipgil/events{/privacy}","received_events_url":"https://api.github.com/users/ruipgil/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T22:47:45Z","updated_at":"2015-08-05T22:47:45Z","body":"I'm glad that you were able to solve the issue. It's related with ``` node-phantom ```. They need a network connection to communicate, hence the necessity for a port definition."}}