node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

Line 1189 json is not iterable error while cancelling orders

Open amigoni opened this issue 6 years ago • 2 comments

Getting a sporadic error at 1189 that json is not iterable. I see the function to check exists but is not used there. I fixed it locally and seems to work.

amigoni avatar Feb 21 '19 14:02 amigoni

I changed under the cancelOrders function to the following:

if (isIterable(json) == false || json.length === 0) { if (callback) return callback.call(this, 'No orders present for this symbol', {}, symbol); }

amigoni avatar Mar 19 '19 01:03 amigoni