Skip to content

Hivefeed crashes periodically #35

@BorislavZlatanov

Description

@BorislavZlatanov

Every once in a while it crashes and stops running. Here are the logs from the last time:

DOCKER LOGS: (press ctrl-c to exit)
[2025-01-09T14:29:40.163Z] Querying Probit (hive/usdt)
[2025-01-09T14:29:40.163Z] Querying GateIO (hive/usdt)
[2025-01-09T14:29:40.163Z] Querying Bittrex (usdt/usd)
[2025-01-09T14:29:40.163Z] Querying Kraken (usdt/usd)
[2025-01-09T14:29:40.164Z] Querying Coinbase (usdt/usd)
[2025-01-09T14:29:40.164Z] Querying Bitfinex (usdt/usd)
Exchange Binance is down! Skipping... true
/opt/hivefeed/lib/adapters/HuobiAdapter.js:23
                console.error('Invalid response code or server error:',error,response.statusCode);
                                                                                      ^

TypeError: Cannot read properties of undefined (reading 'statusCode')
    at Request._callback (/opt/hivefeed/lib/adapters/HuobiAdapter.js:23:87)
    at self.callback (/opt/hivefeed/node_modules/request/request.js:185:22)
    at Request.emit (node:events:513:28)
    at Request.onRequestError (/opt/hivefeed/node_modules/request/request.js:877:8)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:494:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.12.1
npm notice
npm notice New major version of npm available! 8.19.2 -> 11.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.0.0
npm notice Run npm install -g npm@11.0.0 to update!
npm notice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions