News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Intermittent error OAU-213 Token not Found error when refreshing using .Net library
Tags: authentication, errors
Dec 4, 2020 at 2:05am   •   1 replies  •  0 likes
Kenny FONG


I am using the .Net library as I am getting an intermittent error when using the await rc.Refresh() method where rc is RestClient. I call the refresh method before the token has expired.

The response I get when it has errored is:

StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
  Connection: keep-alive
  X-Application-Context: application:8080
  RCRequestId: ba572a7c-357f-11eb-b754-005056b58a26
  Pragma: no-cache
  AceRoutingKey: ams01-c01-ace02.75bacc1c-0756-11eb-a2dd-005056b5fcaa
  RoutingKey: ZRH01P32
  Cache-Control: no-store
  Date: Thu, 03 Dec 2020 15:53:46 GMT
  Server: nginx
  Content-Length: 161
  Content-Language: en
  Content-Type: application/json; charset=utf-8
Content: {
  "error" : "invalid_grant",
  "errors" : [ {
    "errorCode" : "OAU-213",
    "message" : "Token not found"
  } ],
  "error_description" : "Token not found"

I am wondering if you can help? This doesn't happen all the time and generally the token refresh is done every 59 minutes

1 Answer
answered on Dec 4, 2020 at 10:07am  

What is your SDK version?

Instead of refresh 59 minutes, refresh every 30 minutes.

There is a 5-active-tokens limit. So if you are requesting tokens too frequently, old ones will be invalidated, thus "not found".


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us