Error: Refresh token is not valid
See original GitHub issueHowdy, friends;
I’m having some trouble getting Ring working with Homebridge. I used the ring-auth-cli
command (slick tool! nice work ✨) to generate a refreshToken
, and it appears to have succeeded, but I get this error when I start up Homebridge:
[1/13/2020, 7:48:54 PM] [Ring] Request to https://app.ring.com/rhq/v1/devices/v1/locations failed
[1/13/2020, 7:48:54 PM] [Ring] Error connecting to API
[1/13/2020, 7:48:54 PM] [Ring] Error: Refresh token is not valid. Unable to authenticate with Ring servers.
at RingRestClient.getGrantData (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:85:15)
at RingRestClient.<anonymous> (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:89:36)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:8:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:4:12)
at RingRestClient.getAuth (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:88:16)
at RingRestClient.<anonymous> (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:113:33)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/homebridge-ring/lib/api/rest-client.js:6:65)
Just to be safe, I generated another refreshToken
, but I’m still getting the same error. Am I just doing something silly?
Versions:
- homebridge: 0.4.50
- homebridge-ring 5.13.0
- node v13.6.0
- host OS: macOS Catalina 10.15.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
What causes "Invalid Refresh Token" errors? - Auth0 Community
This means that all other refresh tokens issued to the same combination of application, user and audience effectively become invalid.
Read more >Expired Refresh Token Causes an Invalid Token Error
The refresh token expires after 90 days of inactivity. Microsoft also reserves the right to expire the token at any time for security...
Read more >How to find what is causing "Invalid Refresh Token" on Identity ...
1 Answer. Save this answer. Show activity on this post. If the RefreshTokenUsage client configuration is set to OneTime use (the default), if ......
Read more >Refresh token not working. - Constant Contact Community
The two most common reasons for expired refresh token errors are: 1) When you refresh, you get both a new access token and...
Read more >Solved: Refresh token invalid - Fitbit Community
Each time you refresh your token, your application will receive a new access token and new refresh token. You'll need to store the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, you’re gonna love this: the
refreshToken
error is a red herring. The real problem was showing up in homebridge’s error log above that:Homebridge is running on my Mac via
launchd
, and—surprise!—/usr/sbin
wasn’t on the PATH I’d configured. I’ve opened up a pull request against the node-machine-id package that homebridge-ring uses to make it specify a full path to theioreg
command. If it gets merged, I’ll open a PR up against this project to update the dependency.Thanks for the troubleshooting help! ✌️
Sure, happy to do so. I’m away from my computer until tomorrow; stay tuned.
On Sat, Jan 18, 2020 at 9:31 AM Dusty Greif notifications@github.com wrote: