Casperjs status not working on webpage

Access to the https://disqus.com/profile/login/ link from Casperjs continues to return the following

[warning] [phantom] Error loading resource with status = failure: https://disqus.com/profile/login/

ensnare.js

var casper = require("casper").create({
    verbose: true,
    logLevel: "debug"
});

casper.options.timeout = 15000;

casper.start("https://disqus.com/profile/login/", function() {
    this.echo("YES!", "GREEN_BAR");
    this.echo(this.getTitle());
});

casper.run();

config.json

{"ignoreSslErrors": true, "cookiesFile": "biscuit", "maxDiskCacheSize": 1000, "diskCache": true}

Please note that I changed "ignoreSslErrors" to false, but this did not work.

Call script from terminal

./phantomjs --config=config.json casperjs/bin/bootstrap.js --casper-path=casperjs --cli ensnare.js

Screenshot

enter image description here How can I solve this problem? I can access other pages without problems.

+4
source share
2 answers

, , "sslProtocol": "any" config.json, . question.

+2

( Mac OS X):

casperjs --debug=yes --ignore-ssl-errors=true --ssl-protocol=any XYZ.j
Hide result

XYZ.js - .

+12

Source: https://habr.com/ru/post/1532183/


All Articles