DustinBryant / MMM-Ring

Module for MagicMirror that adds video feed of Ring Doorbell events
MIT License
25 stars 10 forks source link

Refresh Token Error #9

Closed electromitter closed 4 years ago

electromitter commented 4 years ago

can anybody help me with this error?

0|MagicMirror | [2020-04-25 17:19:54.904] [ERROR]
0|MagicMirror | (node:23600) UnhandledPromiseRejectionWarning: Error: Failed to fetch oauth token from Ring. Verify that your refresh token is correct. invalid_grant 0|MagicMirror | at RingRestClient. (/home/pi/MagicMirror/modules/MMM-Ring/node_modules/ring-client-api/lib/api/rest-client.js:129:23) 0|MagicMirror | at Generator.throw () 0|MagicMirror | at rejected (/home/pi/MagicMirror/modules/MMM-Ring/node_modules/ring-client-api/lib/api/rest-client.js:6:65) 0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:89:5) 0|MagicMirror | [2020-04-25 17:19:54.912] [ERROR]
0|MagicMirror | (node:23600) UnhandledPromiseRejectionWarning: Error: Failed to fetch oauth token from Ring. Verify that your refresh token is correct. invalid_grant 0|MagicMirror | at RingRestClient. (/home/pi/MagicMirror/modules/MMM-Ring/node_modules/ring-client-api/lib/api/rest-client.js:129:23) 0|MagicMirror | at Generator.throw () 0|MagicMirror | at rejected (/home/pi/MagicMirror/modules/MMM-Ring/node_modules/ring-client-api/lib/api/rest-client.js:6:65) 0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:89:5) 0|MagicMirror | [2020-04-25 17:19:54.920] [ERROR]
0|MagicMirror | (node:23600) 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(). (rejection id: 2) 0|MagicMirror | [2020-04-25 17:19:54.923] [ERROR] (node:23600) 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(). (rejection id: 2) 0|MagicMirror | [2020-04-25 17:19:54.925] [ERROR] (node:23600) [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. 0|MagicMirror | [2020-04-25 17:19:54.927] [ERROR] (node:23600) [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.

jasonbade commented 4 years ago

Make sure you use "ring2faRefreshToken" in your config and not the output of the auth script.

electromitter commented 4 years ago

thanks that helps