question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometime it's crashed while getting market depth

See original GitHub issue

Error below:

node_modules/node-binance-api/node-binance-api.js:315
                if ( typeof data.bids !== 'undefined' ) {
                                ^

TypeError: Cannot read property 'bids' of undefined
    at depthData (/Volumes/DATA/www/storm-alert/node_modules/node-binance-api/node-binance-api.js:315:19)
    at /Volumes/DATA/www/storm-alert/node_modules/node-binance-api/node-binance-api.js:497:39
    at Request._callback (/Volumes/DATA/www/storm-alert/node_modules/node-binance-api/node-binance-api.js:45:12)
    at self.callback (/Volumes/DATA/www/storm-alert/node_modules/request/request.js:186:22)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Request.onRequestError (/Volumes/DATA/www/storm-alert/node_modules/request/request.js:878:8)
    at emitOne (events.js:101:20)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:310:9)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrgooniecommented, Jan 20, 2018

Yea, my fault… sorry 😃

1reaction
jaggedsoftcommented, Jan 20, 2018

you sure? that is no longer on line 320 in version 0.4.4

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Things You Shouldn't Do If the Stock Market Crashes
Market crashes happen. It's part of the market cycle, and no matter how investors and policy leaders try, it has been impossible to...
Read more >
What Is a Flash Crash?
A flash crash occurs when the value of a market drops significantly in electronic trading over a short time period. The original flash...
Read more >
Yes, The Crash Will Probably Get Worse From Here
If we see the correction run this deep, stock valuations will become much more attractive, and it will likely set the stock market...
Read more >
10 Things You Should Know About Bear Markets
Sometimes financial markets need to reset from record-setting performance, too. ... A new bull market begins when the closing price gains 20% from...
Read more >
What a Market Correction Is & What to Do When it Happens
Crashes in the crypto market are common and normal. If the market is collapsing, the best thing you can do is stay calm....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found