error when checking bitcoin balance with bitcore-lib

error when checking bitcoin balance with bitcore-lib

I get 525 error when running node js with bitcore here is my code

  var bitcore =require('bitcore-lib');
  var Insight =require('bitcore-explorers').Insight;
  var insight = new Insight("testnet");

insight.getUnspentUtxos("mgZsaffMAow9TR21BQHY9HfTdbPdJFkww2", function(error, utxos) {
    if (error) {
        res.json({
            error:error
        })
    } else {

    }
})

and here is the response

 {"error":{"statusCode":525,"body":"<!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 7]>    <html class=\"no-js ie7 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 8]>    <html class=\"no-js ie8 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en-US\"> <!--<![endif]-->\n<head>\n<meta http-equiv=\"refresh\" content=\"0\">\n\n<title>test-insight.bitpay.com | 525: SSL handshake failed</title>\n<meta charset=\"UTF-8\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge,chrome=1\" />\n<meta name=\"robots\" content=\"noindex, nofollow\" />\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1\" />\n<link rel=\"stylesheet\" id=\"cf_styles-css\" href=\"/cdn-cgi/styles/cf.errors.css\" type=\"text/css\" media=\"screen,projection\" />\n<!--[if lt IE 9]><link rel=\"stylesheet\" id='cf_styles-ie-css' href=\"/cdn-cgi/styles/cf.errors.ie.css\" type=\"text/css\" media=\"screen,projection\" /><![endif]-->\n<style type=\"text/css\">body{margin:0;padding:0}</style>\n\n\n\n\n</head>\n<body>\n<div id=\"cf-wrapper\">\n\n    \n\n    <div id=\"cf-error-details\" class=\"cf-error-details-wrapper\">\n        <div class=\"cf-wrapper cf-error-overview\">\n            <h1>\n              \n              <span class=\"cf-error-type\">Error</span>\n              <span class=\"cf-error-code\">525</span>\n              <small class=\"heading-ray-id\">Ray ID: 45169b672ed95771 &bull; 2018-08-28 11:58:36 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">SSL handshake failed</h2>\n        </div><!-- /.error-overview -->\n        \n        <div class=\"cf-section cf-highlight cf-status-display\">\n            <div class=\"cf-wrapper\">\n                <div class=\"cf-columns cols-3\">\n                  \n<div id=\"cf-browser-status\" class=\"cf-column cf-status-item cf-browser-status \">\n  <div class=\"cf-icon-error-container\">\n    <i class=\"cf-icon cf-icon-browser\"></i>\n    <i class=\"cf-icon-status cf-icon-ok\"></i>\n  </div>\n  <span class=\"cf-status-desc\">You</span>\n  <h3 class=\"cf-status-name\">Browser</h3>\n  <span class=\"cf-status-label\">Working</span>\n</div>\n\n<div id=\"cf-cloudflare-status\" class=\"cf-column cf-status-item cf-cloudflare-status \">\n  <div class=\"cf-icon-error-container\">\n    <i class=\"cf-icon cf-icon-cloud\"></i>\n    <i class=\"cf-icon-status cf-icon-ok\"></i>\n  </div>\n  <span class=\"cf-status-desc\">Ashburn</span>\n  <h3 class=\"cf-status-name\">Cloudflare</h3>\n  <span class=\"cf-status-label\">Working</span>\n</div>\n\n<div id=\"cf-host-status\" class=\"cf-column cf-status-item cf-host-status cf-error-source\">\n  <div class=\"cf-icon-error-container\">\n    <i class=\"cf-icon cf-icon-server\"></i>\n    <i class=\"cf-icon-status cf-icon-error\"></i>\n  </div>\n  <span class=\"cf-status-desc\">test-insight.bitpay.com</span>\n  <h3 class=\"cf-status-name\">Host</h3>\n  <span class=\"cf-status-label\">Error</span>\n</div>\n\n                </div>\n              \n            </div>\n        </div><!-- /.status-display -->\n\n        <div class=\"cf-section cf-wrapper\">\n            <div class=\"cf-columns two\">\n                <div class=\"cf-column\">\n                    <h2>What happened?</h2>\n                    <p>Cloudflare is unable to establish an SSL connection to the origin server.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                          <h5>If you're a visitor of this website:</h5>\n      <p>Please try again in a few minutes.</p>\n\n      <h5>If you're the owner of this website:</h5>\n      <p><span>It appears that the SSL configuration used is not compatible with Cloudflare. This could happen for a several reasons, including no shared cipher suites.</span> <a href=\"https://support.cloudflare.com/hc/en-us/articles/200278659\">Additional troubleshooting information here.</a></p>\n                </div>\n            </div>\n              \n        </div><!-- /.section -->\n\n        <div class=\"cf-error-footer cf-wrapper\">\n  <p>\n    <span class=\"cf-footer-item\">Cloudflare Ray ID: <strong>45169b672ed95771</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 18.212.211.57</span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Performance &amp; security by</span> <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer\" id=\"brand_link\" target=\"_blank\">Cloudflare</a></span>\n    \n  </p>\n</div><!-- /.error-footer -->\n\n\n    </div><!-- /#cf-error-details -->\n</div><!-- /#cf-wrapper -->\n</body>\n</html>\n","headers":{"date":"Tue, 28 Aug 2018 11:58:36 GMT","content-type":"text/html; charset=UTF-8","content-length":"4607","connection":"close","set-cookie":["__cfduid=d273b0a7224883489ae52361095d4a7d21535457516; expires=Wed, 28-Aug-19 11:58:36 GMT; path=/; domain=.bitpay.com; HttpOnly"],"expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"","server":"cloudflare","cf-ray":"45169b672ed95771-IAD"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"test-insight.bitpay.com","port":443,"hostname":"test-insight.bitpay.com","hash":null,"search":null,"query":null,"pathname":"/api/addrs/utxo","path":"/api/addrs/utxo","href":"https://test-insight.bitpay.com/api/addrs/utxo"},"method":"POST","headers":{"accept":"application/json","content-type":"application/json","content-length":46}}}}

Any idea???

https://ift.tt/2MSbG8F

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password