Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Error while running the docker image #126

Closed
nunoalc opened this issue Mar 17, 2017 · 4 comments
Closed

Error while running the docker image #126

nunoalc opened this issue Mar 17, 2017 · 4 comments

Comments

@nunoalc
Copy link

nunoalc commented Mar 17, 2017

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. '

@boxofdeath
Copy link

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

@burnzzz
Copy link

burnzzz commented Mar 21, 2017

same here inside docker

@adm-github
Copy link

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"
]

@carlos8f
Copy link
Contributor

Cleaning up 3.x issues

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

5 participants