function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mark BiekMark Biek 

Intermittent invalid_grant errors

We have a custom connected app that uses the REST API. In the last couple of days, we've started getting intermittent invalid_grant authentication failures.

It does not happen all the time, maybe 25% of the time or less. I've also tried using cUrl to authenticate on the command-line and I never see any errors, even running the auth command multiple times in succession.

The connected app is already set to Relax IP restrictionsAll users may self-authorize, and Refresh token is valid until revoked.

Any ideas what's going on?
Aaron Aycock 1Aaron Aycock 1
@Mark, we are experiencing this with one of our client integrating with us. Did you figure out why?
Aaron Aycock 1Aaron Aycock 1
For our case, the client confirmed the setup is the same
The connected app is already set to Relax IP restrictions, All users may self-authorize, and Refresh token is valid until revoked.
The weird part is that it works, but after a the oauth2 is called multiple times and the access tokens are used many times, the oauth stops working. throwing the error 
{ "error": "invalid_grant", "error_description": "authentication failure" }
Waited for a few hours, the oauth2 started to work again. 
Homey PathHomey Path
i was also facing same issue on my site article which is related to cushion for wicker loveseat (https://homeypath.com/cushion-for-wicker-loveseat/)
Jennifer samiJennifer sami
I have Also same Issue In My Blogg Can You Check Please. Check Out Here Satyam Lottery Result Live Today (https://newlotteryresults.com/satyam-lottery-result-today-live/)