questrade icon indicating copy to clipboard operation
questrade copied to clipboard

I keep getting "failed_to_refresh_key" every so often

Open rb28z2 opened this issue 5 years ago • 1 comments

I'm not sure if it's something I'm doing wrong, but every so often (once a day) I get the following error message:

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({ message: 'failed_to_refresh_key',
  details:
   { message: 'login_failed',
     token: '<snipped>',
     details: 'Bad Request' } })
    at Questrade.emit (events.js:187:17)
    at Questrade.EventEmitter.emit (domain.js:448:20)

Any idea why this is happening and what I can do to prevent it? The solution so far for me is to generate a new API key from Questrade, but its not exactly practical.

rb28z2 avatar Jun 01 '20 05:06 rb28z2

this is basically the solution from QT. The key you exchange for has a limited lifespan and if you don't use it to refresh then you have to start the hole process over again :\ it seems to be by design

geggleto avatar Jan 20 '21 03:01 geggleto