We're sorry, but something went wrong (500)

11 views
Skip to first unread message

Iván Hernando Ortega

unread,
Jun 27, 2018, 6:22:44 AM6/27/18
to CasperJS
Hi, im trying to do an app connecting with my alarm to automatize it, however when i put the next code to try something basic as getTitle of my web, i get a 500 We're sorry,but something went wrong(500):

var casper = require('casper').create();
//var utils = require('utils');
//casper.start('https://www.myweb.es/');
casper.start();
casper.open('https://www.myweb.es/', {
    method: "get"
});
if (casper.start('https://customers.securitasdirect.es'))
{
    console.log('Success');
}
else
{
    console.log('Not even close');
}

casper.then(function() {
    this.echo('First Page: ' + this.getTitle());
    //utils.dump(this);
});

/*casper.thenOpen('http://casperjs.org', function() {
    this.echo('Second Page: ' + this.getTitle());
});*/

casper.run();

The fact is, i have and If to see that connection exists however, for the First Page: i get the 500 error, any help?

Ken Soh

unread,
Jul 26, 2018, 1:27:26 AM7/26/18
to CasperJS
[ARCHIVE] - dropping a quick note that CasperJS, similar to PhantomJS, is not actively maintained for now.
Reply all
Reply to author
Forward
0 new messages