Error opening url <u_r_l>: SSL handshake failed

I use phantomJS v2.0.0.

Trying to open this page: https://play.google.com/apps/publish/ 'without errors, getting this error:

Error opening url "https://play.google.com/apps/publish/": SSL handshake failed

I have already tried these steps:

  • Add flag --ssl-protocol=TLSv1
  • Add flag --ssl-protocol=any
  • Add flag --ignore-ssl-errors=yes
  • Change user-agent

Nothing resolves the error.

Any help / suggestions?

My code is as follows:

var page = require("webpage").create();

page.onResourceError = function(resourceError) {
    page.reason = resourceError.errorString;
    page.reason_url = resourceError.url;
};


page.open(
    "https://play.google.com/apps/publish/",
    function (status) {
        if ( status !== 'success' ) {
            console.log(
                "Error opening url \"" + page.reason_url
                + "\": " + page.reason
            );
            phantom.exit( 1 );
        } else {
            console.log( "Successful page open!" );
            phantom.exit( 0 );
        }
    }
);

Thanks in advance!

+4
source share

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


All Articles