Skip to content
This repository has been archived by the owner on May 1, 2018. It is now read-only.

Uncaught exception Error 504 #135

Open
maintwitter7 opened this issue Jan 24, 2018 · 0 comments
Open

Uncaught exception Error 504 #135

maintwitter7 opened this issue Jan 24, 2018 · 0 comments

Comments

@maintwitter7
Copy link

maintwitter7 commented Jan 24, 2018

Sometimes when Bittrex is under high load, the server returns a 504 which immediately causes the application to crash. Is there a way to catch the error in the callback instead of throwing it?

uncaughtException: unexpected server response (504)
"date":"Sun Jan 21 2018 21:22:34 GMT+0000 (UTC)"
"process": {
    "pid": 4,
    "uid": 54377,
    "gid": 54377,
    "cwd": "/app",
    "execPath": "/app/.heroku/node/bin/node",
    "version": "v8.9.4",
    "argv": [
        "/app/.heroku/node/bin/node",
        "/app/index.js"
    ],
    "memoryUsage": {
        "rss": 179290112,
        "heapTotal": 113143808,
        "heapUsed": 38858856,
        "external": 18481412
    }
}
{
    "os": {
        "loadavg": [
            2.96826171875,
            2.36474609375,
            3.35595703125
        ],
        "uptime": 1367647
    },
    "trace": [
        {
            "column": 21,
            "file": "/app/node_modules/ws/lib/WebSocket.js",
            "function": "ClientRequest._req.on",
            "line": 653,
            "method": "on",
            "native": false
        }
    ]
}
{
    "column": 13,
    "file": "events.js",
    "function": "emitOne",
    "line": 116,
    "method": null,
    "native": false
}
{
    "column": 7,
    "file": "events.js",
    "function": "ClientRequest.emit",
    "line": 211,
    "method": "emit",
    "native": false
}
{
    "column": 21,
    "file": "_http_client.js",
    "function": "HTTPParser.parserOnIncomingClient [as onIncoming]",
    "line": 551,
    "method": "parserOnIncomingClient [as onIncoming]",
    "native": false
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant