node-asana
node-asana copied to clipboard
No proper way to catch a call after bearer token is expired?
When I try to perform an operation when the bearer token is expired, I get this message on the server:
I20170223-11:15:03.228(-8)? * * * * * * * * * * * * * * * * * * * * * * * * * * *
I20170223-11:15:03.231(-8)? Please open a browser to the url:
I20170223-11:15:03.231(-8)?
I20170223-11:15:03.231(-8)? https://app.asana.com/-/oauth_authorize?client_id=xx&response_type=code&redirect_uri=xx&scope=default
I20170223-11:15:03.232(-8)?
I20170223-11:15:03.232(-8)? and follow the prompts to authorize this application.
I20170223-11:15:03.232(-8)? * * * * * * * * * * * * * * * * * * * * * * * * * * *
Despite there being console.log
statements afterwards, they're never reached. The process flow is exited, no errors are thrown that I can catch. From a programmatic standpoint, this isn't very useful, as I'm not able to properly handle this exception.