guo-yu / btc

a command-line bitcoin price board for geeks
MIT License
389 stars 73 forks source link

TypeError: Cannot read property 'last' of undefined #10

Closed eduardo closed 10 years ago

eduardo commented 10 years ago

I am getting this error on my mac mini. node has been installed with homebrew.


mtgox          loading...
    bitstamp       $ 834.00 10:39
    btce           $ 747.00 10:39
    futures796     loading...
    btcchina       loading...
    okcoin         loading...
    chbtc          loading...
    fxbtc          loading...
    btctrade       loading...
    btc100         loading...

TypeError: Cannot read property 'last' of undefined
    at List.wash [as _wash] (/usr/local/share/npm/lib/node_modules/btc/libs/cli.js:35:31)
    at /usr/local/share/npm/lib/node_modules/btc/libs/cli.js:74:33
    at /usr/local/share/npm/lib/node_modules/btc/libs/bitcoin.js:34:21
    at /usr/local/share/npm/lib/node_modules/btc/node_modules/sdk/action.js:12:13
    at res (/usr/local/share/npm/lib/node_modules/btc/node_modules/sdk/node_modules/beer/index.js:15:9)
    at Request._callback (/usr/local/share/npm/lib/node_modules/btc/node_modules/sdk/node_modules/beer/index.js:54:9)
    at Request.self.callback (/usr/local/share/npm/lib/node_modules/btc/node_modules/sdk/node_modules/beer/node_modules/request/request.js:129:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request. (/usr/local/share/npm/lib/node_modules/btc/node_modules/sdk/node_modules/beer/node_modules/request/request.js:873:14)
    at Request.EventEmitter.emit (events.js:117:20)
guo-yu commented 10 years ago

sorry for that, i've fixed it now. try to update btc to 0.0.3.

eduardo commented 10 years ago

Wow, that was fast. Thanks, works great in 0.0.3.

Cheers.