Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning - Getting new token error #47

Open
TomNijsen opened this issue Feb 20, 2022 · 0 comments
Open

UnhandledPromiseRejectionWarning - Getting new token error #47

TomNijsen opened this issue Feb 20, 2022 · 0 comments

Comments

@TomNijsen
Copy link

TomNijsen commented Feb 20, 2022

Since a week or two, I'm not able to authenticate anymore...
I regenerated V3 access tokens on Teslafi to make sure tokens are correct. I used the 'Tesla API Access Token' although the node config states 'Refresh token' (incorrectly?). But even with the 'Refresh Token' from Teslafi I get the same result, so I'm assuming it has nothing to do with my tokens...

This is what I see in the NodeRed log file, hopefully some experts can point me or the developer in the right direction of a solution?

Tesla API: No token found. Getting new token now...
Tesla API: doing api call to fetch new access token
(node:12971) UnhandledPromiseRejectionWarning: Error
at getNewTokenFromApi (/home/pi/.node-red/node_modules/node-red-contrib-tesla/src/tesla.js:35:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async /home/pi/.node-red/node_modules/node-red-contrib-tesla/src/tesla.js:282:31
(node:12971) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9)
(node:12971) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant