Krypto-trading-bot: App terminates with 'std::domain_error' message

Created on 20 Aug 2017  路  6Comments  路  Source: ctubio/Krypto-trading-bot

On Ubuntu machine when running nodejs K.js

this happens

K.linux.57
21:41:13.512681 CF settings loaded from JSON file K OK.
21:41:13.513145 UI ready over HTTPS on external port 3000.
21:41:14.818108 GW Bitfinex allows client IP.
21:41:14.818260 GW Bitfinex:
- autoBot: no
- pair: btcusd
- minTick: 0.10000000
- minSize: 0.01000000
- makeFee: 0.00000000
- takeFee: 0.00000000
21:41:14.818733 DB /data/db/K.4.0.82.db loaded OK.
terminate called after throwing an instance of 'std::domain_error'
  what():  type must be number, but is string
Aborted (core dumped)

thanks in advance

acknowledged bug

Most helpful comment

I think you've got it - I replaced the new 'K.3.6.0.db' file with an existing from another server that had a history of trades in it and K has started fine.

All 6 comments

im not able to reproduce this; are you using the latest commit?

I'm having the same issue on a fresh reinstall (on latest commit from ~20 mins ago).

Ubuntu 16.04, node v8.4.0

K.linux.57
1:1:50.332680 CF settings loaded from JSON file K OK.
1:1:50.33352 UI ready over HTTPS on external port 3000.
1:1:53.286421 GW coinbase allows client IP.
1:1:53.286484 GW coinbase:

  • autoBot: no
  • pair: ETH-BTC
  • minTick: 0.00001000
  • minSize: 0.01000000
  • makeFee: 0.00000000
  • takeFee: 0.00000000
    1:1:53.28715 DB /data/db/K.3.6.0.db loaded OK.
    terminate called after throwing an instance of 'std::domain_error'
    what(): type must be number, but is string
    [1] 11316 abort (core dumped) node K.js

More details from strace:

write(2, "terminate called after throwing "..., 48terminate called after throwing an instance of ') = 48
write(2, "std::domain_error", 17std::domain_error) = 17
write(2, "'n", 2'
) = 2
write(2, " what(): ", 11 what(): ) = 11
write(2, "type must be number, but is stri"..., 34type must be number, but is string) = 34
write(2, "n", 1

maybe this happens if the database is empty? will try to reproduce again tomorrow deleting my db

I think you've got it - I replaced the new 'K.3.6.0.db' file with an existing from another server that had a history of trades in it and K has started fine.

yes I installed it completely fresh same as dddanmar same setup

Was this page helpful?
0 / 5 - 0 ratings

Related issues

werkkrew picture werkkrew  路  5Comments

Camille92 picture Camille92  路  6Comments

gusiri picture gusiri  路  3Comments

Bzzz666 picture Bzzz666  路  8Comments

Camille92 picture Camille92  路  7Comments