Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify gives a lot of HTML/HTTP 502 and 400 messages on stderror #40

Open
m-schmoock opened this issue Nov 16, 2018 · 11 comments
Open

verify gives a lot of HTML/HTTP 502 and 400 messages on stderror #40

m-schmoock opened this issue Nov 16, 2018 · 11 comments

Comments

@m-schmoock
Copy link
Contributor

m-schmoock commented Nov 16, 2018

When I try to verify a timestamp using the CLI, the output looks broken.

The verification seems to go trhough, also the OTS can be upgraded, but
the output looks seriously broken. Tried this on serveral machines and networks.

This issue exist for me at least for a month.

$>  ./node_modules/javascript-opentimestamps/ots-cli.js verify README.md.ots 
Assuming target filename is 'README.md'
Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c144095897c2 &bull; 2018-11-16 08:58:17 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c144095897c2</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c144bc2ebecb &bull; 2018-11-16 08:58:17 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c144bc2ebecb</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c144fcd0c2a6 &bull; 2018-11-16 08:58:17 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c144fcd0c2a6</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c14519c59756 &bull; 2018-11-16 08:58:17 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c14519c59756</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c1492cac9712 &bull; 2018-11-16 08:58:18 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c1492cac9712</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c1497c49c297 &bull; 2018-11-16 08:58:18 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c1497c49c297</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c14baca5233c &bull; 2018-11-16 08:58:18 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c14baca5233c</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 502 - "<!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\n\n<title>www.localbitcoinschain.com | 502: Bad gateway</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\">502</span>\n              <small class=\"heading-ray-id\">Ray ID: 47a8c14c1a4ac2d3 &bull; 2018-11-16 08:58:18 UTC</small>\n            </h1>\n            <h2 class=\"cf-subheadline\">Bad gateway</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\">Frankfurt</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\">www.localbitcoinschain.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>The web server reported a bad gateway error.</p>\n                </div>\n              \n                <div class=\"cf-column\">\n                    <h2>What can I do?</h2>\n                    <p>Please try again in a few minutes.</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>47a8c14c1a4ac2d3</strong></span>\n    <span class=\"cf-footer-separator\">&bull;</span>\n    <span class=\"cf-footer-item\"><span>Your IP</span>: 92.50.99.115</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"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Success! Bitcoin block 550218 attests existence as of 2018-11-15 CET
$> echo $?
0
@escapedcat
Copy link
Contributor

Noticed this as well: #37 (comment)

Looks like http://www.localbitcoinschain.com/ is down:
image

@m-schmoock
Copy link
Contributor Author

m-schmoock commented Nov 16, 2018

Maybe we need a patch that prevents from making subsequent calls to broken insight servers.
Shall I make one?

@m-schmoock
Copy link
Contributor Author

When I comment out the broken server I still some of the error messages:

Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Could not connect to local Bitcoin node
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Insight response error: StatusCodeError: 400 - "Block height out of range. Code:-8"
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Lite-client verification, assuming block 0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869 is valid
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Insight response error: StatusCodeError: 400 - "Can't read block from disk. Code:-32603"
Success! Bitcoin block 550218 attests existence as of 2018-11-15 CET

@escapedcat
Copy link
Contributor

Could not connect to local Bitcoin node

Not sure, but could it be that after an upgrade it expects a local Bitcoin node in the used environment?

@m-schmoock
Copy link
Contributor Author

With a non-upgraded OTS file I get the same messages.

@escapedcat
Copy link
Contributor

True, then it might just be the error message from the missing localbitcoinschain.com server.

@m-schmoock
Copy link
Contributor Author

m-schmoock commented Nov 16, 2018

nope, the otther errors come from bitaccess.co server:

https://search.bitaccess.co/insight-api/block/0000000000000000001b7bb07548b2ea609cf018b88026d14d28d56bf96b5869

=> Can\'t read block from disk. Code:-32603

How do you handle failing servers in this repo? Just removing them ist the dirty way, should there be a way to detect and blacklist failing endpoints?

When you remove localbitcoinschain and bitaccess the lib does not produce ugly output anymore.

@m-schmoock
Copy link
Contributor Author

A good way would be to have a DNS bootstrap list or something for this project that we can update.

@lvaccaro
Copy link
Member

Hi, lite client verification sucks very often, and it is a not a "safe" verification. For this reason, the library calls multiple explorers. Moreover, only a few explorers in the list support cors (to work inside the browser). The safe way is to connect to your bitcoin node. Every suggestion on error message is welcome (as #41).

@m-schmoock
Copy link
Contributor Author

So my suggestion:

  1. Remove broken insight servers localbitcoinschain and bitaccess.
  2. Add another CORS enabled server that I will host to compensate for the loss.
  3. Reduce Remote Log message to i.e. 100 Chars

I will update #41 as soon as my bitcore server is ready.

@m-schmoock
Copy link
Contributor Author

Done. I updated PR #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants