Trying to Run Phantomjs on Openshift: Cannot Patch Ghostdriver So That It Can Bind on the Server Ip Address

Trying to run PhantomJS on OpenShift: cannot patch GhostDriver so that it can bind on the server IP address

Since OpenShift Online runs on RHEL, you should be able to install CentOS into a VM on your local machine (or run one in the cloud somewhere) and compile a version of PhantomJS with the patch and then upload it to your OpenShift server and use it.

If you can't do that please use the contact us form at help.openshift.com and reference this stackoverflow question.

Does phantomJs error handlers catch the errors?

You're right: page.onResourceError, page.OnError, phantom.onError callbacks don't affect script execution, are indeed for debugging purposes - you don't have to catch them. Subscribing to page.onError is strongly advised though to help you debug script.

Also note that syntax errors in PhantomJS scripts are currently (v2.1.1) swallowed by a bug in QTWebkit, therefore you should use some linting software, or editor with syntax/error highlighting or try scripts in PhantomJS 1.9.8 first (which will report any syntax errors).



Related Topics



Leave a reply



Submit