bitcore-explorers icon indicating copy to clipboard operation
bitcore-explorers copied to clipboard

Cannot connect to livenet after Months of smooth connectivity

Open Cryptopayng opened this issue 5 years ago • 20 comments

My app has a smooth connection to Bitpay network for Months now. Today i started having error "525 Origin SSL Handshake Error". This a a strange error and this only applies to live. I need urgent help please.

<ref *2> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: true, endEmitted: true, reading: false, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: false, destroyed: false, errored: false, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [ [Function: responseOnEnd], [Function (anonymous)] ], close: [ [Function (anonymous)], [Function (anonymous)] ], data: [Function (anonymous)], error: [Function (anonymous)] }, _eventsCount: 4, _maxListeners: undefined, socket: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: [SecureContext], isServer: false, requestCert: true, rejectUnauthorized: true, session: <Buffer 30 82 06 22 02 01 01 02 02 03 03 04 02 c0 2b 04 20 20 a8 cb 27 c6 b3 88 73 db 35 ce 44 59 c5 e8 6d ff 0e e1 e5 5c 28 4f 3d 63 79 22 87 99 23 6f 59 04 ... 1524 more bytes>, ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'insight.bitpay.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [Array], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function] }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'insight.bitpay.com', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: false, destroyed: false, errored: false, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: false, errored: false, closed: false, writable: true }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: ClientRequest { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Circular *1], _header: 'POST /api/addrs/utxo HTTP/1.1\r\n' + 'host: insight.bitpay.com\r\n' + 'accept: application/json\r\n' + 'content-type: application/json\r\n' + 'content-length: 46\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/api/addrs/utxo', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'insight.bitpay.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, [Symbol(res)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 545, [Symbol(kHandle)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: { rejectUnauthorized: true, ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA', checkServerIdentity: [Function: checkServerIdentity], minDHSize: 1024, session: <Buffer 30 82 06 22 02 01 01 02 02 03 03 04 02 c0 2b 04 20 20 a8 cb 27 c6 b3 88 73 db 35 ce 44 59 c5 e8 6d ff 0e e1 e5 5c 28 4f 3d 63 79 22 87 99 23 6f 59 04 ... 1524 more bytes>, _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, method: 'POST', callback: [Function (anonymous)], readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], headers: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function (anonymous)], uri: [Url], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _disableCookies: true, _jar: undefined, port: 443, host: 'insight.bitpay.com', path: null, _json: true, body: '{"addrs":"155ahEGEPxx7pGcRrKehgMu27ukHtGx585"}', httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://insight.bitpay.com/api/addrs/utxo', _defaultAgent: [Agent], servername: 'insight.bitpay.com', _agentKey: 'insight.bitpay.com:443::::::::::::::::::', encoding: null, singleUse: true } }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: { date: 'Wed, 30 Sep 2020 11:44:12 GMT', 'content-type': 'text/html', 'content-length': '207', connection: 'close', 'set-cookie': [ '__cfduid=db6a1a5959e58a2cd565b24be0dc443df1601466252; expires=Fri, 30-Oct-20 11:44:12 GMT; path=/; domain=.bitpay.com; HttpOnly; SameSite=Lax' ], 'cache-control': 'no-store, no-cache', 'cf-request-id': '05806cd3210000c4f85fb54200000001', 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', server: 'cloudflare', 'cf-ray': '5dadb0cb6dd7c4f8-LOS' }, rawHeaders: [ 'Date', 'Wed, 30 Sep 2020 11:44:12 GMT', 'Content-Type', 'text/html', 'Content-Length', '207', 'Connection', 'close', 'Set-Cookie', '__cfduid=db6a1a5959e58a2cd565b24be0dc443df1601466252; expires=Fri, 30-Oct-20 11:44:12 GMT; path=/; domain=.bitpay.com; HttpOnly; SameSite=Lax', 'Cache-Control', 'no-store, no-cache', 'cf-request-id', '05806cd3210000c4f85fb54200000001', 'Expect-CT', 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Server', 'cloudflare', 'CF-RAY', '5dadb0cb6dd7c4f8-LOS' ], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 525, statusMessage: 'Origin SSL Handshake Error', client: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: [SecureContext], isServer: false, requestCert: true, rejectUnauthorized: true, session: <Buffer 30 82 06 22 02 01 01 02 02 03 03 04 02 c0 2b 04 20 20 a8 cb 27 c6 b3 88 73 db 35 ce 44 59 c5 e8 6d ff 0e e1 e5 5c 28 4f 3d 63 79 22 87 99 23 6f 59 04 ... 1524 more bytes>, ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'insight.bitpay.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [Array], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function] }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'insight.bitpay.com', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: false, destroyed: false, errored: false, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: false, errored: false, closed: false, writable: true }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: ClientRequest { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Circular *1], _header: 'POST /api/addrs/utxo HTTP/1.1\r\n' + 'host: insight.bitpay.com\r\n' + 'accept: application/json\r\n' + 'content-type: application/json\r\n' + 'content-length: 46\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/api/addrs/utxo', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'insight.bitpay.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, [Symbol(res)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 545, [Symbol(kHandle)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: [Function: noop], onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: { rejectUnauthorized: true, ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA', checkServerIdentity: [Function: checkServerIdentity], minDHSize: 1024, session: <Buffer 30 82 06 22 02 01 01 02 02 03 03 04 02 c0 2b 04 20 20 a8 cb 27 c6 b3 88 73 db 35 ce 44 59 c5 e8 6d ff 0e e1 e5 5c 28 4f 3d 63 79 22 87 99 23 6f 59 04 ... 1524 more bytes>, _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, method: 'POST', callback: [Function (anonymous)], readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], headers: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function (anonymous)], uri: [Url], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _disableCookies: true, _jar: undefined, port: 443, host: 'insight.bitpay.com', path: null, _json: true, body: '{"addrs":"155ahEGEPxx7pGcRrKehgMu27ukHtGx585"}', httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://insight.bitpay.com/api/addrs/utxo', _defaultAgent: [Agent], servername: 'insight.bitpay.com', _agentKey: 'insight.bitpay.com:443::::::::::::::::::', encoding: null, singleUse: true } }, _consuming: false, _dumped: false, req: <ref *3> ClientRequest { _events: [Object: null prototype] { socket: [Function (anonymous)], response: [Function: bound ], error: [Function: bound ], drain: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: <ref *1> TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'insight.bitpay.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'insight.bitpay.com', _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular *3], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 545, [Symbol(kHandle)]: [TLSWrap], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] }, _header: 'POST /api/addrs/utxo HTTP/1.1\r\n' + 'host: insight.bitpay.com\r\n' + 'accept: application/json\r\n' + 'content-type: application/json\r\n' + 'content-length: 46\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'fifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/api/addrs/utxo', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'insight.bitpay.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { host: [Array], accept: [Array], 'content-type': [Array], 'content-length': [Array] } }, request: <ref *4> Request { _events: [Object: null prototype] { error: [Function: bound ], complete: [Function: bound ], pipe: [Function (anonymous)], data: [Function (anonymous)], end: [Function (anonymous)] }, _eventsCount: 5, _maxListeners: undefined, method: 'POST', callback: [Function (anonymous)], readable: true, writable: true, explicitMethod: true, _qs: Querystring { request: [Circular *4], lib: [Object], useQuerystring: undefined, parseOptions: {}, stringifyOptions: {} }, _auth: Auth { request: [Circular *4], hasAuth: false, sentAuth: false, bearerToken: null, user: null, pass: null }, _oauth: OAuth { request: [Circular *4], params: null }, _multipart: Multipart { request: [Circular *4], boundary: 'd037b325-eb6d-4090-b5e3-e66c985ba3b6', chunked: false, body: null }, _redirect: Redirect { request: [Circular *4], followRedirect: true, followRedirects: true, followAllRedirects: false, followOriginalHttpMethod: false, allowRedirect: [Function (anonymous)], maxRedirects: 10, redirects: [], redirectsFollowed: 0, removeRefererHeader: false }, _tunnel: Tunnel { request: [Circular *4], proxyHeaderWhiteList: [Array], proxyHeaderExclusiveList: [] }, headers: { accept: 'application/json', 'content-type': 'application/json', 'content-length': 46 }, setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function (anonymous)], uri: Url { protocol: 'https:', slashes: true, auth: null, host: 'insight.bitpay.com', port: 443, hostname: 'insight.bitpay.com', hash: null, search: null, query: null, pathname: '/api/addrs/utxo', path: '/api/addrs/utxo', href: 'https://insight.bitpay.com/api/addrs/utxo' }, proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _disableCookies: true, _jar: undefined, port: 443, host: 'insight.bitpay.com', path: '/api/addrs/utxo', _json: true, body: '{"addrs":"155ahEGEPxx7pGcRrKehgMu27ukHtGx585"}', httpModule: { Agent: [Function: Agent], globalAgent: [Agent], Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] }, agentClass: [Function: Agent], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'fifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, _started: true, href: 'https://insight.bitpay.com/api/addrs/utxo', req: <ref *3> ClientRequest { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], _header: 'POST /api/addrs/utxo HTTP/1.1\r\n' + 'host: insight.bitpay.com\r\n' + 'accept: application/json\r\n' + 'content-type: application/json\r\n' + 'content-length: 46\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/api/addrs/utxo', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'insight.bitpay.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, ntick: true, response: [Circular *2], originalHost: 'insight.bitpay.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _destdata: true, _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, toJSON: [Function: responseToJSON], caseless: Caseless { dict: { date: 'Wed, 30 Sep 2020 11:44:12 GMT', 'content-type': 'text/html', 'content-length': '207', connection: 'close', 'set-cookie': [Array], 'cache-control': 'no-store, no-cache', 'cf-request-id': '05806cd3210000c4f85fb54200000001', 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', server: 'cloudflare', 'cf-ray': '5dadb0cb6dd7c4f8-LOS' } }, body: '\r\n' + '

525 Origin SSL Handshake Error\r\n' + '\r\n' + '

525 Origin SSL Handshake Error

\r\n' + '
cloudflare-nginx
\r\n' + '\r\n' + '\r\n', [Symbol(kCapture)]: false }

Cryptopayng avatar Sep 30 '20 11:09 Cryptopayng

Same thing here, too. Still trying to find out what might be wrong.

boxi18 avatar Sep 30 '20 14:09 boxi18

This is driving me crazy. Is there any alternative right now?

This issue also persists with bitcore-lib.

{ "statusCode": 525, "body": "\r\n

525 Origin SSL Handshake Error\r\n<body bgcolor="white">\r\n

525 Origin SSL Handshake Error

\r\n
cloudflare-nginx
\r\n\r\n

\r\n", "headers": { "date": "Wed, 30 Sep 2020 15:03:39 GMT", "content-type": "text/html", "content-length": "207", "connection": "close", "set-cookie": [ "__cfduid=dfedb614ee30305577dd72a7a491790ee1601478218; expires=Fri, 30-Oct-20 15:03:38 GMT; path=/; domain=.bitpay.com; HttpOnly; SameSite=Lax" ], "cache-control": "no-store, no-cache", "cf-request-id": "0581236bc60000c4ec8c3f6200000001", "expect-ct": "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"", "server": "cloudflare", "cf-ray": "5daed4f2df9dc4ec-LOS" }, "request": { "uri": { "protocol": "https:", "slashes": true, "auth": null, "host": "insight.bitpay.com", "port": 443, "hostname": "insight.bitpay.com", "hash": null, "search": null, "query": null, "pathname": "/api/addrs/utxo", "path": "/api/addrs/utxo", "href": "https://insight.bitpay.com/api/addrs/utxo" }, "method": "POST", "headers": { "accept": "application/json", "content-type": "application/json", "content-length": 151 } } }

Cryptopayng avatar Sep 30 '20 15:09 Cryptopayng

Hi

Were you guys able to resolve this issue?

We seem to have this issue and dont know how to fix it.

gbpjpy avatar Oct 17 '20 17:10 gbpjpy

Hi @gbpjpy

Zelcore did it for us. https://explorer.btc.zelcore.io

Cryptopayng avatar Oct 18 '20 00:10 Cryptopayng

Hi. Insight is now available at bitpay.com/insight

On Sat, Oct 17, 2020, 21:27 Cryptopayng [email protected] wrote:

Hi @gbpjpy https://github.com/gbpjpy

Zelcore did it for us. https://explorer.btc.zelcore.io

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitpay/bitcore-explorers/issues/48#issuecomment-711098047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAYEHFJFZ6TGJLFPYT7LIDSLIY55ANCNFSM4R67PUFQ .

matiu avatar Oct 18 '20 12:10 matiu

Hi @gbpjpy

Zelcore did it for us. https://explorer.btc.zelcore.io

Hi.

Not sure what you mean by Zelcore did it for us?

Is it best to reach out to them so they can take a look?

gbpjpy avatar Oct 18 '20 23:10 gbpjpy

After replacing the URL the error seems to be fixed but we still see

statusCode: 500, statusMessage: 'Internal Server Error',

This is the source code we are using

var explorers = require('bitcore-explorers'); var client = new explorers.Insight(); var address = '19BkPaeRJ3jW7owRhj25dKixwXoRksUfai';

client.getUnspentUtxos(address,function(err,utxos){ if(err){ console.log("error"); console.log(err); } else{ console.log( utxos.map(function(v){ return { txid: v.txId, vout: v.outputIndex, scriptPubKey: v.script, satoshis: v.satoshis, }})); } });

Can anyone help us out here?

gbpjpy avatar Oct 20 '20 05:10 gbpjpy

Any news with this? I'm getting the same issue. I tried the previous solutions to absolutely no avail.

codecontrib avatar Jan 05 '21 21:01 codecontrib

Hey @gbpjpy, By this link it means just replace the insight provider link with this one. You should be able to avoid the error you getting.

cdc-Hitesh avatar Jan 13 '21 09:01 cdc-Hitesh

Anyone find a solution?

ashtyn3 avatar Jan 13 '21 18:01 ashtyn3

Anyone find a solution?

@ashtyn3

This provider insight.bitpay.com is no longer in use. So either run your own (Bitcore-Insight) Node or use another open free provider( I am using https://explorer.btc.zelcore.io/ works fantastic 👍 )

cdc-Hitesh avatar Jan 13 '21 18:01 cdc-Hitesh

Thanks man I really appreciate your response!!

codecontrib avatar Jan 13 '21 20:01 codecontrib

@cdc-Hitesh

How would I go about changing the provider?

ashtyn3 avatar Jan 16 '21 18:01 ashtyn3

Does @bitpay have any intent to restore this service?

martindale avatar Jan 17 '21 17:01 martindale

Did someone find a solution ? Is there any fixes ?

eric72 avatar Mar 25 '21 00:03 eric72

@cdc-Hitesh

How would I go about changing the provider?

The code function argument where you are supposed to mention the Insight Provider, there you can use https://explorer.btc.zelcore.io/ in order for your APIs to work. Thanks @ashtyn3

cdc-Hitesh avatar Mar 25 '21 02:03 cdc-Hitesh

Where can you change the Insight provider please ? @cdc-Hitesh or if someone know and can help please

eric72 avatar Mar 25 '21 12:03 eric72

ok i changed but now i got an error i cannot post to: explorer.btc.zelcore.io

eric72 avatar Mar 25 '21 13:03 eric72

I think there is no more insight provider for the apis, i think you can forget the lib guys

eric72 avatar Mar 26 '21 19:03 eric72

@eric72 Try this:

var explorers = require("bitcore-explorers");
var insight = new explorers.Insight("https://explorer.btc.zelcore.io");

insight.getUnspentUtxos(address, function (err, utxos) {
  if (err) {
    console.error("error", err);
  } else {
    console.log("utxos", utxos);
  }
});

red-name avatar May 14 '21 16:05 red-name