Created
August 8, 2021 15:35
-
-
Save GuntharDeNiro/1df03cd599ba39ab3ce237f07eb7fed3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StatusCodeError: 520 - "<html>\n<head><title>520 Origin Error</title></head>\n<body bgcolor=\"white\">\n<center><h1>520 Origin Error</h1></center>\n<hr><center>cloudflare-nginx</center>\n</body>\n</html>\n" | |
at new StatusCodeError (/Users/enricoranucci/Desktop/STABLE/node_modules/request-promise/node_modules/request-promise-core/lib/errors.js:32:15) | |
at Request.plumbing.callback (/Users/enricoranucci/Desktop/STABLE/node_modules/request-promise/node_modules/request-promise-core/lib/plumbing.js:104:33) | |
at Request.RP$callback [as _callback] (/Users/enricoranucci/Desktop/STABLE/node_modules/request-promise/node_modules/request-promise-core/lib/plumbing.js:46:31) | |
at Request.self.callback (/Users/enricoranucci/Desktop/STABLE/node_modules/request/request.js:185:22) | |
at Request.emit (events.js:315:20) | |
at Request.<anonymous> (/Users/enricoranucci/Desktop/STABLE/node_modules/request/request.js:1154:10) | |
at Request.emit (events.js:315:20) | |
at IncomingMessage.<anonymous> (/Users/enricoranucci/Desktop/STABLE/node_modules/request/request.js:1076:12) | |
at Object.onceWrapper (events.js:421:28) | |
at IncomingMessage.emit (events.js:327:22) | |
at endReadableNT (_stream_readable.js:1224:12) | |
at processTicksAndRejections (internal/process/task_queues.js:84:21) { | |
statusCode: 520, | |
error: '<html>\n' + | |
'<head><title>520 Origin Error</title></head>\n' + | |
'<body bgcolor="white">\n' + | |
'<center><h1>520 Origin Error</h1></center>\n' + | |
'<hr><center>cloudflare-nginx</center>\n' + | |
'</body>\n' + | |
'</html>\n', | |
options: { | |
headers: { | |
'Content-Type': 'application/json', | |
Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNjI4NDM2NDc0IiwianRpIjoiNzhiYzQ3NjYtOGM4OC00NGMwLThjYmUtZmQ3YjYxYjE5YThjIiwidWlkIjoiQUJGNEQ5QzUtMjgxNC00NEVBLUI2QTQtMTdFMkZGQTQyNDBFIiwiYWlkIjoiOThCMzBFQ0ItOEEzNS00QzE5LUI0RUQtMTY2RUZDNDJCOTYzIiwiaXB3IjoiRmFsc2UiLCJ0cmQiOiJBbGxvd2VkIiwiZmlhdCI6Ik5vdEFsbG93ZWQiLCJwcm0iOlsiVHJhZGUiLCJSZWFkIl0sIm5iZiI6MTYyODQzNjQ3NCwiZXhwIjoxNjI4NDM4Mjc0LCJpc3MiOiJodHRwczovL3RyYWRld2l0aC5iZWF4eS5jb20vIn0.rEh03UFSrhQ-9Zzfyv1rX6bNS3ozOJaUdy2REEADtlo' | |
}, | |
method: 'GET', | |
uri: 'https://tradewith.beaxy.com/api/v2/orders/open', | |
callback: [Function: RP$callback], | |
transform: undefined, | |
simple: true, | |
resolveWithFullResponse: false, | |
transform2xxOnly: false | |
}, | |
response: <ref *1> 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: false, | |
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: false, | |
decoder: null, | |
encoding: null, | |
[Symbol(kPaused)]: false | |
}, | |
_events: [Object: null prototype] { | |
end: [Array], | |
close: [Array], | |
data: [Function (anonymous)], | |
error: [Function (anonymous)] | |
}, | |
_eventsCount: 4, | |
_maxListeners: undefined, | |
socket: TLSSocket { | |
_tlsOptions: [Object], | |
_secureEstablished: true, | |
_securePending: false, | |
_newSessionPending: false, | |
_controlReleased: true, | |
secureConnecting: false, | |
_SNICallback: null, | |
servername: 'tradewith.beaxy.com', | |
alpnProtocol: false, | |
authorized: true, | |
authorizationError: null, | |
encrypted: true, | |
_events: [Object: null prototype], | |
_eventsCount: 10, | |
connecting: false, | |
_hadError: false, | |
_parent: null, | |
_host: 'tradewith.beaxy.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: [ClientRequest], | |
[Symbol(res)]: [TLSWrap], | |
[Symbol(verified)]: true, | |
[Symbol(pendingSession)]: null, | |
[Symbol(async_id_symbol)]: 2798997, | |
[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] | |
}, | |
httpVersionMajor: 1, | |
httpVersionMinor: 1, | |
httpVersion: '1.1', | |
complete: true, | |
headers: { | |
date: 'Sun, 08 Aug 2021 15:33:37 GMT', | |
'content-type': 'text/html', | |
'transfer-encoding': 'chunked', | |
connection: 'close', | |
'cache-control': 'no-store, no-cache', | |
'cf-cache-status': 'DYNAMIC', | |
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', | |
server: 'cloudflare', | |
'cf-ray': '67b9cc6688283752-MXP', | |
'alt-svc': 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400' | |
}, | |
rawHeaders: [ | |
'Date', | |
'Sun, 08 Aug 2021 15:33:37 GMT', | |
'Content-Type', | |
'text/html', | |
'Transfer-Encoding', | |
'chunked', | |
'Connection', | |
'close', | |
'Cache-Control', | |
'no-store, no-cache', | |
'CF-Cache-Status', | |
'DYNAMIC', | |
'Expect-CT', | |
'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', | |
'Server', | |
'cloudflare', | |
'CF-RAY', | |
'67b9cc6688283752-MXP', | |
'alt-svc', | |
'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400' | |
], | |
trailers: {}, | |
rawTrailers: [], | |
aborted: false, | |
upgrade: false, | |
url: '', | |
method: null, | |
statusCode: 520, | |
statusMessage: 'Origin Error', | |
client: TLSSocket { | |
_tlsOptions: [Object], | |
_secureEstablished: true, | |
_securePending: false, | |
_newSessionPending: false, | |
_controlReleased: true, | |
secureConnecting: false, | |
_SNICallback: null, | |
servername: 'tradewith.beaxy.com', | |
alpnProtocol: false, | |
authorized: true, | |
authorizationError: null, | |
encrypted: true, | |
_events: [Object: null prototype], | |
_eventsCount: 10, | |
connecting: false, | |
_hadError: false, | |
_parent: null, | |
_host: 'tradewith.beaxy.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: [ClientRequest], | |
[Symbol(res)]: [TLSWrap], | |
[Symbol(verified)]: true, | |
[Symbol(pendingSession)]: null, | |
[Symbol(async_id_symbol)]: 2798997, | |
[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] | |
}, | |
_consuming: true, | |
_dumped: false, | |
req: ClientRequest { | |
_events: [Object: null prototype], | |
_eventsCount: 5, | |
_maxListeners: undefined, | |
outputData: [], | |
outputSize: 0, | |
writable: true, | |
destroyed: false, | |
_last: true, | |
chunkedEncoding: false, | |
shouldKeepAlive: false, | |
useChunkedEncodingByDefault: false, | |
sendDate: false, | |
_removedConnection: false, | |
_removedContLen: false, | |
_removedTE: false, | |
_contentLength: 0, | |
_hasBody: true, | |
_trailer: '', | |
finished: true, | |
_headerSent: true, | |
socket: [TLSSocket], | |
_header: 'GET /api/v2/orders/open HTTP/1.1\r\n' + | |
'Content-Type: application/json\r\n' + | |
'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNjI4NDM2NDc0IiwianRpIjoiNzhiYzQ3NjYtOGM4OC00NGMwLThjYmUtZmQ3YjYxYjE5YThjIiwidWlkIjoiQUJGNEQ5QzUtMjgxNC00NEVBLUI2QTQtMTdFMkZGQTQyNDBFIiwiYWlkIjoiOThCMzBFQ0ItOEEzNS00QzE5LUI0RUQtMTY2RUZDNDJCOTYzIiwiaXB3IjoiRmFsc2UiLCJ0cmQiOiJBbGxvd2VkIiwiZmlhdCI6Ik5vdEFsbG93ZWQiLCJwcm0iOlsiVHJhZGUiLCJSZWFkIl0sIm5iZiI6MTYyODQzNjQ3NCwiZXhwIjoxNjI4NDM4Mjc0LCJpc3MiOiJodHRwczovL3RyYWRld2l0aC5iZWF4eS5jb20vIn0.rEh03UFSrhQ-9Zzfyv1rX6bNS3ozOJaUdy2REEADtlo\r\n' + | |
'host: tradewith.beaxy.com\r\n' + | |
'Connection: close\r\n' + | |
'\r\n', | |
_onPendingData: [Function: noopPendingOutput], | |
agent: [Agent], | |
socketPath: undefined, | |
method: 'GET', | |
maxHeaderSize: undefined, | |
insecureHTTPParser: undefined, | |
path: '/api/v2/orders/open', | |
_ended: true, | |
res: [Circular *1], | |
aborted: false, | |
timeoutCb: null, | |
upgradeOrConnect: false, | |
parser: null, | |
maxHeadersCount: null, | |
reusedSocket: false, | |
[Symbol(kCapture)]: false, | |
[Symbol(kNeedDrain)]: false, | |
[Symbol(corked)]: 0, | |
[Symbol(kOutHeaders)]: [Object: null prototype] | |
}, | |
request: Request { | |
_events: [Object: null prototype], | |
_eventsCount: 5, | |
_maxListeners: undefined, | |
headers: [Object], | |
method: 'GET', | |
uri: [Url], | |
readable: true, | |
writable: true, | |
explicitMethod: true, | |
_qs: [Querystring], | |
_auth: [Auth], | |
_oauth: [OAuth], | |
_multipart: [Multipart], | |
_redirect: [Redirect], | |
_tunnel: [Tunnel], | |
_rp_resolve: [Function (anonymous)], | |
_rp_reject: [Function (anonymous)], | |
_rp_promise: [Promise [Object]], | |
_rp_callbackOrig: undefined, | |
callback: [Function (anonymous)], | |
_rp_options: [Object], | |
setHeader: [Function (anonymous)], | |
hasHeader: [Function (anonymous)], | |
getHeader: [Function (anonymous)], | |
removeHeader: [Function (anonymous)], | |
localAddress: undefined, | |
pool: {}, | |
dests: [], | |
__isRequestRequest: true, | |
_callback: [Function: RP$callback], | |
proxy: null, | |
tunnel: true, | |
setHost: true, | |
originalCookieHeader: undefined, | |
_disableCookies: true, | |
_jar: undefined, | |
port: 443, | |
host: 'tradewith.beaxy.com', | |
path: '/api/v2/orders/open', | |
httpModule: [Object], | |
agentClass: [Function: Agent], | |
agent: [Agent], | |
_started: true, | |
href: 'https://tradewith.beaxy.com/api/v2/orders/open', | |
req: [ClientRequest], | |
ntick: true, | |
response: [Circular *1], | |
originalHost: 'tradewith.beaxy.com', | |
originalHostHeaderName: 'host', | |
responseContent: [Circular *1], | |
_destdata: true, | |
_ended: true, | |
_callbackCalled: true, | |
[Symbol(kCapture)]: false | |
}, | |
toJSON: [Function: responseToJSON], | |
caseless: Caseless { dict: [Object] }, | |
body: '<html>\n' + | |
'<head><title>520 Origin Error</title></head>\n' + | |
'<body bgcolor="white">\n' + | |
'<center><h1>520 Origin Error</h1></center>\n' + | |
'<hr><center>cloudflare-nginx</center>\n' + | |
'</body>\n' + | |
'</html>\n', | |
[Symbol(kCapture)]: false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment