ring: error undefined after install 9.4.0

Bug Report

Describe the Bug

error undefined after install 9.4.0. i try to get another token even if i had one since the beggining, but now the response is undefined if i try to install older version the response is the same.

To Reproduce

Steps to reproduce the behavior:

  • Start Homebridge
  • Attempt to …
  • See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots/Logs

[7/5/2020, 7:31:13 AM] [Ring] Request to https://app.ring.com/rhq/v1/devices/v1/locations failed with status undefined. Response body: undefined [7/5/2020, 7:31:13 AM] [Ring] Error connecting to API [7/5/2020, 7:31:13 AM] [Ring] Error: Refresh token is not valid. Unable to authenticate with Ring servers. See https://github.com/dgreif/ring/wiki/Refresh-Tokens at RingRestClient.getGrantData (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:116:15) at RingRestClient.<anonymous> (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:120:36) at Generator.next (<anonymous>) at /usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:27:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:23:12) at RingRestClient.getAuth (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:119:16) at RingRestClient.refreshAuth (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:214:33) at RingRestClient.<anonymous> (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:231:26) at Generator.throw (<anonymous>)

Additional context

Add any other context about the problem here.

Homebridge Ring Config

Post homebridge-ring platform config without sensitive information


HIGHLIGHT THIS TEXT AND POST CONFIG HERE
DO NOT INCLUDE YOUR REFRESH TOKEN OR EMAIL/PASSWORD (replace them with xxx)

Environment

  • OS: mac catalina
  • Node.js: 14.0.0
  • NPM: 6.14.4
  • homebridge-ring:9.4.0
  • homebridge: 1.1.1
  • hoobs: [e.g. 0.4.50 or N/A]

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 49 (17 by maintainers)

Most upvoted comments

just reset my homebridge instance and is working back again, thanks for your help to all

v14.5.1 installed and everything working as it should, cameras and alarm.

Ive installed 14.5.0 and now i dont have the error but i can see the camera on homekit (((

oka i upgraded to 14.5.0 and it seems to be working fine now!

I was on node v14.1.0, installed LTS version, uninstalled ring plugin and reinstalled. I now have ring plugin working. Thank you very much for your help. Am I to remain on the LTS node version for the foreseeable future?

On Tue, 7 Jul 2020 at 21:53, divemasterjm notifications@github.com wrote:

same here, still having undefined error

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dgreif/ring/issues/391#issuecomment-655128181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEIYVCFW55O53P5E7FWJFLR2ODNTANCNFSM4OQWYK2Q .

Thanks for the reply, yeah I used the config UI-X to get refresh token. I’ll take do as you suggest and let you know how I get on.

On Sun, 5 Jul 2020 at 15:00, Dusty Greif notifications@github.com wrote:

Ok, I need some clarification. Did you change your config and set “refreshToken”: “undefined” in there? If so, that will definitely cause issues. undefined indicates that Ring did not actually provide a refresh token when you tried to fetch one with the auth cli. I’ll start looking into why that situation could happen, but my guess is that Ring just had a bug on their end last night. You should rerun the auth cli and try to get a valid refresh token. The other option is to use homebridge-config-ui-x to get a new token. If you already have the ui installed, just go into your Ring settings and clear out the refresh token field. It will then walk you through the auth process and handle the config update for you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dgreif/ring/issues/391#issuecomment-653892477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEIYVBOCWWRBKXZLM2G62LR2CBRDANCNFSM4OQWYK2Q .