question

eziel-fleischman222 avatar image
eziel-fleischman222 asked John Wang commented

Error after application is idle for a long time

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}

subscription.AddEvent("/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true")

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






sdk
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image
John Wang answered
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:


Thanks!

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

eziel-fleischman222 avatar image
eziel-fleischman222 answered
Yes I'm using RingCentralSDK.0.1.21 got from nuGet.

Thanks for the reply, I created an issue on gitHub https://github.com/ringcentral/ringcentral-csharp/issues/24
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

benjamin-dean avatar image
benjamin-dean answered
Thanks for creating the issue in Github. :)
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

eziel-fleischman222 avatar image
eziel-fleischman222 answered John Wang commented

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)


4 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

If you didn't change any code, please open a support case. You can do this by logging into the Developer Portal ( http://developers.ringcentral.com) and then going to Support > FAQs, or via this direct link:

https://developer.ringcentral.com/api/support-cases/create
0 Likes 0 ·
The only thing I did was updating all packages using NuGet. I'll open a case.
0 Likes 0 ·
Where can I see the status of my case? https://developer.ringcentral.com/api/support-cases/check takes me on a login loop...

0 Likes 0 ·
There may be some session information that's needed for that link.

Log into Developer Portal at https://developers.ringcentral.com . Then click on the "Support" link in the menu bar and click on the link in the following sentence. It should be the same link but with some session context.
If you want to check on an existing support request please  click here.
0 Likes 0 ·
John Wang avatar image
John Wang answered
Eziel has indicated that this issue only occurs in production and not in sandbox here:

https://github.com/ringcentral/ringcentral-csharp/issues/24#issuecomment-217932997

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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys