leanderlee/questrade

Unhandled "error" event Questrade.emit

Closed this issue · 4 comments

I have my package variables up top, then the questrade variables with the

// Wait to login
qt.on('ready', () => {

  // Access your account here
  qt.getAccounts();
  qt.getBalances();

  // Get Market quotes
  qt.getQuote('MSFT');

  // ... etc. See the full documentation for all the calls you can make!
});

Then my routes require, my db connection and my passport config.

My app.js runs fine to the end and shows the server starting but then after 1 second pops this error and shuts down my server.

What is the error?

I thought that I had this issue also. It's not super clear on the QT website how to get your token. Perhaps they have changed it recently. @joshk132 make sure you click "New Device" on the API Centre page in order to get your OAuth token. @leanderlee thanks for the package! Nice work 😸