Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

I have error running the bot #48

Description

@masato-watanabe

I have error running the bot.

Could you please help me? From November 1, 2021(dYdX Solo(Layer1) is down), this bot do not work or still work on L2?

For get rewards, should I have to connect any dapp site with Metamask or any prerequisites?


docker run
-e WALLET_ADDRESS=0x2cbaAbD055F9C7BFF9a62A2FAaA58C1ad34DB456
-e WALLET_PRIVATE_KEY=0x"XXXXXXXX"
-e ETHEREUM_NODE_URL="mynode"
-e SOLO_LIQUIDATIONS_ENABLED=true
-e PERP_LIQUIDATIONS_ENABLED=true
-e SOLO_EXPIRATIONS_ENABLED=true
-e SOLO_MIN_OVERHEAD_VALUE=1e36
dydxprotocol/liquidator

liquidator@2.1.1 start /home/dydx/app
node build/index.js

Starting in env undefined
2022-08-13 08:42:34 [info]: {
"at": "web3#loadAccounts",
"message": "Loaded liquidator account",
"address": "0x2cbaabd055f9c7bff9a62a2faaa58c1ad34db456"
}
2022-08-13 08:42:35 [info]: {
"at": "AccountStore#start",
"message": "Starting account store"
}
2022-08-13 08:42:35 [info]: {
"at": "AccountStore#_update",
"message": "Updating accounts..."
}
2022-08-13 08:42:35 [info]: {
"at": "MarketStore#start",
"message": "Starting market store"
}
2022-08-13 08:42:35 [info]: {
"at": "MarketStore#_update",
"message": "Updating markets..."
}
2022-08-13 08:42:35 [info]: {
"at": "GasPriceUpdater#start",
"message": "Starting gas price updater"
}
2022-08-13 08:42:35 [info]: {
"at": "getGasPrices",
"message": "Fetching gas prices"
}
2022-08-13 08:42:35 [info]: {
"at": "SoloLiquidator#start",
"message": "Starting solo liquidator"
}
2022-08-13 08:42:35 [info]: {
"at": "SoloLiquidator#_liquidateAccounts",
"message": "No accounts to liquidate"
}
2022-08-13 08:42:35 [info]: {
"at": "PerpLiquidator#start",
"message": "Starting perp liquidator"
}
2022-08-13 08:42:35 [error]: {
"at": "AccountStore#_poll",
"message": "404 - undefined",
"error": {
"name": "StatusCodeError",
"statusCode": 404,
"message": "404 - undefined",
"options": {
"method": "GET",
"uri": "https://api.dydx.exchange/v1/perpetual-accounts",
"json": true,
"qs": {
"isLiquidatable": true
},
"simple": true,
"resolveWithFullResponse": false,
"transform2xxOnly": false
},
"response": {
"statusCode": 404,
"headers": {
"date": "Sat, 13 Aug 2022 08:42:35 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "0",
"connection": "close",
"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": "73a02881fecbaf55-NRT",
"alt-svc": "h3=":443"; ma=86400, h3-29=":443"; ma=86400"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.dydx.exchange",
"port": null,
"hostname": "api.dydx.exchange",
"hash": null,
"search": "?isLiquidatable=true",
"query": "isLiquidatable=true",
"pathname": "/v1/perpetual-accounts",
"path": "/v1/perpetual-accounts?isLiquidatable=true",
"href": "https://api.dydx.exchange/v1/perpetual-accounts?isLiquidatable=true"
},
"method": "GET",
"headers": {
"accept": "application/json"
}
}
}
}
}
StatusCodeError: 404 - undefined
at new StatusCodeError (/home/dydx/app/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/home/dydx/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/home/dydx/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/home/dydx/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2022-08-13 08:42:35 [error]: {
"at": "MarketStore#_poll",
"message": "404 - undefined",
"error": {
"name": "StatusCodeError",
"statusCode": 404,
"message": "404 - undefined",
"options": {
"method": "GET",
"uri": "https://api.dydx.exchange/v1/markets",
"json": true,
"simple": true,
"resolveWithFullResponse": false,
"transform2xxOnly": false
},
"response": {
"statusCode": 404,
"headers": {
"date": "Sat, 13 Aug 2022 08:42:35 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "0",
"connection": "close",
"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": "73a02881fd0d1f57-NRT",
"alt-svc": "h3=":443"; ma=86400, h3-29=":443"; ma=86400"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.dydx.exchange",
"port": 443,
"hostname": "api.dydx.exchange",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1/markets",
"path": "/v1/markets",
"href": "https://api.dydx.exchange/v1/markets"
},
"method": "GET",
"headers": {
"accept": "application/json"
}
}
}
}
}
StatusCodeError: 404 - undefined
at new StatusCodeError (/home/dydx/app/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/home/dydx/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/home/dydx/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/home/dydx/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2022-08-13 08:42:35 [info]: {
"at": "updateGasPrice",
"message": "Updating gas price",
"gasPrice": "74000000001"
}
2022-08-13 08:42:40 [info]: {
"at": "SoloLiquidator#_liquidateAccounts",
"message": "No accounts to liquidate"
}
2022-08-13 08:42:40 [info]: {
"at": "AccountStore#_update",
"message": "Updating accounts..."
}
2022-08-13 08:42:40 [info]: {
"at": "MarketStore#_update",
"message": "Updating markets..."
}
2022-08-13 08:42:40 [error]: {
"at": "AccountStore#_poll",
"message": "404 - undefined",
"error": {
"name": "StatusCodeError",
"statusCode": 404,
"message": "404 - undefined",
"options": {
"method": "GET",
"uri": "https://api.dydx.exchange/v1/accounts",
"json": true,
"qs": {
"isLiquidatable": true
},
"simple": true,
"resolveWithFullResponse": false,
"transform2xxOnly": false
},
"response": {
"statusCode": 404,
"headers": {
"date": "Sat, 13 Aug 2022 08:42:40 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "0",
"connection": "close",
"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": "73a028a17e498081-NRT",
"alt-svc": "h3=":443"; ma=86400, h3-29=":443"; ma=86400"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.dydx.exchange",
"port": null,
"hostname": "api.dydx.exchange",
"hash": null,
"search": "?isLiquidatable=true",
"query": "isLiquidatable=true",
"pathname": "/v1/accounts",
"path": "/v1/accounts?isLiquidatable=true",
"href": "https://api.dydx.exchange/v1/accounts?isLiquidatable=true"
},
"method": "GET",
"headers": {
"accept": "application/json"
}
}
}
}
}
StatusCodeError: 404 - undefined
at new StatusCodeError (/home/dydx/app/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/home/dydx/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/home/dydx/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/home/dydx/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2022-08-13 08:42:40 [error]: {
"at": "MarketStore#_poll",
"message": "404 - undefined",
"error": {
"name": "StatusCodeError",
"statusCode": 404,
"message": "404 - undefined",
"options": {
"method": "GET",
"uri": "https://api.dydx.exchange/v1/perpetual-markets",
"json": true,
"simple": true,
"resolveWithFullResponse": false,
"transform2xxOnly": false
},
"response": {
"statusCode": 404,
"headers": {
"date": "Sat, 13 Aug 2022 08:42:40 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "0",
"connection": "close",
"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": "73a028a17f5aaf2a-NRT",
"alt-svc": "h3=":443"; ma=86400, h3-29=":443"; ma=86400"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.dydx.exchange",
"port": 443,
"hostname": "api.dydx.exchange",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1/perpetual-markets",
"path": "/v1/perpetual-markets",
"href": "https://api.dydx.exchange/v1/perpetual-markets"
},
"method": "GET",
"headers": {
"accept": "application/json"
}
}
}
}
}
StatusCodeError: 404 - undefined
at new StatusCodeError (/home/dydx/app/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/home/dydx/app/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/home/dydx/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/home/dydx/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/home/dydx/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions