Invalid grant error

Posted on
Sat May 23, 2020 8:19 am
FlyingDiver offline
User avatar
Posts: 4241
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Invalid grant error

Code: Select all
   Starting plugin "Ring 1.7.6" (pid 42446)
   Started plugin "Ring 1.7.6"
   Ring Debug                      Startup called
   Ring Debug                      Connected to Ring.com API?: False
   Ring                            Attempting to connect to Ring.com API and login as indigo@flyingdiver.com
   Ring                            Connection to Ring.com API successful
   Ring Debug                      Getting events and device states from Ring.com API
   Ring Debug                      Error while trying to update devices from Ring.com API: InvalidGrantError(u'(invalid_grant) token is invalid or does not exists',)
   Ring Error                      Connection error - pausing for 30 seconds before retrying (error: (invalid_grant) token is invalid or does not exists)


May 23, 2020 at 10:18:43 AM
   Ring Error                      plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Ring Debug                      Connected to Ring.com API?: True
   Ring Debug                      Getting events and device states from Ring.com API
   Ring Debug                      Error while trying to update devices from Ring.com API: InvalidGrantError(u'(invalid_grant) token is invalid or does not exists',)
   Ring Error                      Connection error - pausing for 30 seconds before retrying (error: (invalid_grant) token is invalid or does not exists)

  Ring                            Retrieving all available devices from Ring.com (this may take a moment, please be patient)
   Ring Error                      Error in plugin execution MenuAction:

Traceback (most recent call last):
  File "plugin.py", line 480, in printAvailableRingDevices
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/ring_doorbell/__init__.py", line 75, in stickup_cams
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/ring_doorbell/__init__.py", line 46, in devices
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/ring_doorbell/__init__.py", line 40, in query
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/ring_doorbell/auth.py", line 92, in query
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/ring_doorbell/auth.py", line 54, in refresh_tokens
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/requests_oauthlib/oauth2_session.py", line 446, in refresh_token
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/oauthlib/oauth2/rfc6749/parameters.py", line 438, in validate_token_parameters
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/RingForIndigo.indigoPlugin/Contents/Server Plugin/oauthlib/oauth2/rfc6749/errors.py", line 405, in raise_from_error
InvalidGrantError: (invalid_grant) token is invalid or does not exists



joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jun 09, 2020 3:46 pm
dssinger offline
Posts: 3
Joined: Aug 22, 2018

Re: Invalid grant error

I had a similar problem and worked round it like so:

* Logged onto ring.com and turned of SMS authentication.
* Logged out.
* Erased the token at /Library/Application Support/Perceptive Automation/Indigo 7.4/Preferences/Plugins/com.thebenzes.zachbenz.indigoplugin.ringforindigo.token
* Started the plugin and selected "Configure"
* Erased the password and pasted it back in.
* Hit "Save" - even though I'd turned off SMS authentication, the plugin still needed a code.
* Went back to a browser and logged into Ring
* It sent a code to my email address.
* Used that code in Indigo

and it seems to work.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest