zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Error while running the docker image

Open nunoalc opened this issue 9 years ago • 4 comments

Im running the default settings, and just changed the compose to use ETH-BTC, and also the config file looks like this:

// watch these exchanges c.watch_exchanges = [ //"bitfinex", "gdax", //"kraken", //"poloniex" ]

// selector for indicators, trading, etc c.default_selector = "gdax.ETH-BTC"

// add selectors in the format "{exchange-slug}.{asset}-{currency}" to graph them c.graph_selectors = [ c.default_selector, "gdax.ETH-BTC", "gdax.ETH-USD" ]

// trade logic c.logic = require('./default_logic')

the container still runs other commands and a bunch of logs are working, but in the middle, this error occurs several times:

mongodb_1 | 2017-03-17T14:05:10.663+0000 I NETWORK [thread1] connection accepted from 172.17.0.4:46166 #113 (23 connections now open) eth-btc_1 | { message: 'request timestamp expired' } eth-btc_1 | 03/17/2017 02:06:03 PM UTC [ERROR] non-200 status from exchange: 400 eth-btc_1 | /app/node_modules/numbro/numbro.js:1111 eth-btc_1 | var parts = x.toString().split('.'); eth-btc_1 | ^ eth-btc_1 | eth-btc_1 | TypeError: Cannot read property 'toString' of undefined eth-btc_1 | at multiplier (/app/node_modules/numbro/numbro.js:1111:22) eth-btc_1 | at /app/node_modules/numbro/numbro.js:1127:22 eth-btc_1 | at Array.reduce (native) eth-btc_1 | at correctionFactor (/app/node_modules/numbro/numbro.js:1125:21) eth-btc_1 | at cback (/app/node_modules/numbro/numbro.js:1230:34) eth-btc_1 | at Array.reduce (native) eth-btc_1 | at Numbro.divide (/app/node_modules/numbro/numbro.js:1233:48) eth-btc_1 | at /app/default_logic.js:165:43 eth-btc_1 | at Immediate.doNext (/app/node_modules/zenbrain/utils/apply_funcs.js:10:12) eth-btc_1 | at runCallback (timers.js:666:20)

PS: the ' ^ ' in the logs above is pointing at ' x. '

nunoalc avatar Mar 17 '17 17:03 nunoalc

I'm having the same issue as well. I am not using Docker.

n8sask avatar Mar 20 '17 03:03 n8sask

same here inside docker

burnzzz avatar Mar 21 '17 09:03 burnzzz

you're using twice the same selector in c.graph_selectors:

c.graph_selectors = [
c.default_selector,
"gdax.ETH-BTC",
"gdax.ETH-USD"
]

since c.default_selector is already gdax.ETH-BTC. try remove the second item

c.graph_selectors = [
c.default_selector,
"gdax.ETH-USD"
]

adm-github avatar Apr 02 '17 10:04 adm-github

Cleaning up 3.x issues

carlos8f avatar May 22 '17 11:05 carlos8f