Error: cb(); is not a function
#1
When importing a coin pair from Binance, and then running a live Gekko for paper trading I get the error:

_stream_writable.js:464
TypeError: cb is not a function
  at afterWrite (_stream_writable.js:464:3)

I tried swapping out the line:

return _.map(_.cloneDeep(batch), function(trade) {

in tradeBatcher.js so that it used .clone instead of .cloneDeep per this bug report on lodash https://github.com/nodejs/node/issues/10985 but results didn't change.

Weird thing is when I remove the coin pair data so that I get all the data from the exchange, I don't have the error. This happens with other coin pairs as well.

--UPDATE--
The error was coming from:
line 464: var state = stream._writableState;

in gekko-stable\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_writable.js.

I updated the line to just be = true and I no longer get the error. Can someone tell me why this is happening? My normal language is C# and this doesn't make sense to me. Also, anyone know the correct fix to make for it?
  Reply


Messages In This Thread
Error: cb(); is not a function - by faldor - 07-21-2018, 09:35 PM
RE: Error: cb(); is not a function - by askmike - 07-22-2018, 12:08 AM
RE: Error: cb(); is not a function - by faldor - 07-22-2018, 12:48 AM
RE: Error: cb(); is not a function - by faldor - 07-22-2018, 06:57 AM
RE: Error: cb(); is not a function - by Derbeweis - 09-17-2018, 05:35 PM

Forum Jump:


Users browsing this thread: