2

I have been running a casperjs/phantomjs script on my ubuntu 12.04 server for many months without issue. Suddenly it has stopped. There have been no configuration changes (that I know of).

Even testing the simple script posted here, casperjs just hangs on casper.start. No errors are reported and it does not time out. I have also tried running it with the --ingore-ssl-errors=true flag with the same result.

I do not know where to look for errors and logs to begin to troubleshoot this.

Sample script I'm trying:

var casper = require('casper').create();

casper.start('http://casperjs.org/', function() {
    this.echo(this.getTitle());
});

casper.thenOpen('http://phantomjs.org', function() {
    this.echo(this.getTitle());
});

casper.run();
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Kevin
  • 3,690
  • 5
  • 35
  • 38
  • 2
    I doubt this is it, but what about `--ssl-protocol=tlsv1`? – Artjom B. Oct 20 '14 at 16:29
  • Well stop doubting because that worked! The only thing I can think of is that the host did some mandatory SSL upgrade/patch that kocked my stuff offline. – Kevin Oct 20 '14 at 17:45
  • possible duplicate of [CasperJS/PhantomJS doesn't load https page](http://stackoverflow.com/questions/26415188/casperjs-phantomjs-doesnt-load-https-page) – Artjom B. Oct 20 '14 at 18:12
  • @ArtjomB. You should write that as an answer to get some upvotes. – Emil Stenström Jun 23 '15 at 07:53
  • 3
    @EmilStenström No, I shouldn't. This is a duplicate. It's frowned upon to answer duplicate questions. – Artjom B. Jun 23 '15 at 08:09

0 Answers0