Hi,
I am having trouble using phantomjs with mocha (mocha-phantomjs). As part of the npm install phase, it tries to download the phantomjs binary but it fails. I see that the proxy settings are correct. Anyone have experience with this ?
The error log for reference
2017-03-09 14:24:40,618 - xmake-core - INFO - > phan...@1.9.7-15 install /data/xmake/SlaveProd/workspace/MedasJS-medas-thing-odata-PR-linuxx86_64/gen/out/module/node_modules/mocha-phantomjs/node_modules/phantomjs
2017-03-09 14:24:40,618 - xmake-core - INFO - > node install.js
2017-03-09 14:24:40,618 - xmake-core - INFO -
2017-03-09 14:24:41,040 - xmake-core - INFO - Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
2017-03-09 14:24:41,042 - xmake-core - INFO - Saving to /data/xmake/SlaveProd/workspace/MedasJS-medas-thing-odata-PR-linuxx86_64/gen/tmp/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2
2017-03-09 14:24:41,043 - xmake-core - INFO - Using proxy http://proxy.wdf.sap.corp:8080/
2017-03-09 14:24:41,044 - xmake-core - INFO - Receiving...
2017-03-09 14:24:44,079 - xmake-core - INFO -
2017-03-09 14:24:44,080 - xmake-core - INFO - Error making request.
2017-03-09 14:24:44,081 - xmake-core - ERROR - tunneling socket could not be established, cause=connect ECONNREFUSED 147.204.6.136:8080
2017-03-09 14:24:44,081 - xmake-core - INFO - at ClientRequest.onError (/data/xmake/SlaveProd/workspace/MedasJS-medas-thing-odata-PR-linuxx86_64/gen/out/module/node_modules/mocha-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/tunnel-agent/index.js:176:17)
2017-03-09 14:24:44,082 - xmake-core - INFO - at ClientRequest.g (events.js:260:16)
2017-03-09 14:24:44,082 - xmake-core - INFO - at emitOne (events.js:77:13)
2017-03-09 14:24:44,083 - xmake-core - INFO - at ClientRequest.emit (events.js:169:7)
2017-03-09 14:24:44,083 - xmake-core - INFO - at Socket.socketErrorListener (_http_client.js:267:9)
2017-03-09 14:24:44,084 - xmake-core - INFO - at emitOne (events.js:77:13)
2017-03-09 14:24:44,084 - xmake-core - INFO - at Socket.emit (events.js:169:7)
2017-03-09 14:24:44,084 - xmake-core - INFO - at emitErrorNT (net.js:1269:8)
2017-03-09 14:24:44,085 - xmake-core - INFO - at nextTickCallbackWith2Args (node.js:442:9)
2017-03-09 14:24:44,085 - xmake-core - INFO - at process._tickCallback (node.js:356:17)
2017-03-09 14:24:44,086 - xmake-core - INFO -
2017-03-09 14:24:44,086 - xmake-core - INFO - Please report this full log at https://github.com/Medium/phantomjs
Regards
Prithvi