We are getting intermittent errors when refreshing Oauth2 tokens in our Rest API integration. We are using a legacy token (Admin > App Integration > General >App Integrations > Custom OAuth apps) and the app has been working in our test environment for months. We recently deployed to production and more users are using it more regularly.
The same user will get a refresh token error one moment and then when they try again it errors (see below).
We did have a scheduled process that was retrieving all documents from each user and therefore hitting the API more frequently (once per user every 15 minutes), we have stopped that process temporarily to see if that helps, but would like to know if there are any other known issues which would be causing the intermittent issues.
{"type":"http.ClientResponse","code":400,"headers":{"Alt-Svc":"h3=\":443\"; ma=93600","alt-svc":"h3=\":443\"; ma=93600","connection":"close","Connection":"close","Content-Length":"166","content-length":"166","Content-Type":"application/json","content-type":"application/json","Date":"Wed, 24 Apr 2024 22:17:28 GMT","date":"Wed, 24 Apr 2024 22:17:28 GMT","Strict-Transport-Security":"max-age=31536000","strict-transport-security":"max-age=31536000","Vary":"Origin","vary":"Origin","Via":"1.1 mono001.prod-phx-na15.core.ns.internal","via":"1.1 mono001.prod-phx-na15.core.ns.internal","x-lucid-flow-id":"e93e10683a3fe85b","X-Lucid-Flow-Id":"e93e10683a3fe85b"},"body":"{\"error\":\"invalid_grant\",\"error_description\":\"Invalid client id, client secret, or refresh token\",\"error_uri\":\"https://developer.lucid.co/api/#general-oauth2-errors\"}"}