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
Error after application is idle for a long time
Tags: sdk
May 4, 2016 at 2:59pm   •   5 replies  •  0 likes

After my program is running for about 20 minutes the application crashes with the following error:

System.Exception: Access token corrupted

at RingCentral.Subscription.SubscriptionServiceImplementation.Renew()

at RingCentral.Subscription.SubscriptionServiceImplementation.OnTimedExpired(Object source)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

at System.Threading.TimerQueueTimer.CallCallback()

at System.Threading.TimerQueueTimer.Fire()

at System.Threading.TimerQueue.FireNextTimers()

This is my code:

Dim subscription = New SubscriptionServiceImplementation With {._platform = ringCentral}


Dim responsePub = subscription.Subscribe(AddressOf ActionOnUser, AddressOf ActionOnConnect, AddressOf ActionOnError)

5 Answers
answered on May 9, 2016 at 6:26pm  
Eziel has indicated that this issue only occurs in production and not in sandbox here:

Since this sounds like an API issue and not a SDK issue, we'll need our DevRel team to work with you on this who I've informed of this thread and will follow-up. Please provide additional information here or open a support case.

answered on May 5, 2016 at 12:33pm  

Today the UserCallback stopped firing on presence changes. [the connect event does fire and says "Connected".

I didn't change any code since yesterday, not sure why it won't work anymore.

(I wrote the same comment on gitHub too)

answered on May 5, 2016 at 11:45am  
Thanks for creating the issue in Github. :)

answered on May 4, 2016 at 3:47pm  
Yes I'm using RingCentralSDK.0.1.21 got from nuGet.

Thanks for the reply, I created an issue on gitHub

answered on May 4, 2016 at 3:43pm  
Hi Eziel,

It looks like you are using the C# SDK. If so, what version are you using? We recently fixed an issue that sounds like this with the latest release, 0.1.21, which is on Nuget and GtiHub.

If you are running into this issue with version 0.1.21 of the C# SDK, please create an issue for the C# SDK here:



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