I have a winform app that will run either minimized or in the system tray. Part of its job is to display incoming caller info. I am using the C# SDK to successfully authenticate, create the subscription and then receive notification information. The problems start when I just leave the program running and no new events are coming in simulating the use case where someone leaves the program running overnight (or an extended lunch). We start to see first chance web socket exceptions, null exceptions and eventually a code break will happen and a final error will indicate that objects have been optimized away. These errors are coming from the SDK code and don't bubble up through any try/catch code so that I could handle the error. The application is dead simple at this point. It connects, authorizes, creates a subscription and listens via callbacks. Is there a method I need to call on a timer to keep the objects alive?
0.1.2 alpha 4: http://www.nuget.org/packages/RingCentralSDK/0.1.2-alpha4
Please try it out and provide feedback here or on GitHub:
GitHub issues: https://github.com/ringcentral/ringcentral-csharp/issues
Thanks!
In the meantime, the RingCentral C# SDK is open source, and we welcome contributions from our community. Please see the Github Issue tracker for reported issues and follow the contribution documentation to become an active contributor this open source project.https://github.com/ringcentral/ringcentral-csharp/issues
I have created a new forum post link is below please have a look
https://devcommunity.ringcentral.com/ringcentraldev/topics/having-issue-when-using-c-sdk-and-using-p...
StatusCode=5040
Severity=Critical
MessageSource=Server
IsDotNetException=False
Message=
DetailedDotNetException=
PubnubWebRequest=PubNubMessaging.Core.PubnubWebRequest PubnubWebResponse=PubNubMessaging.Core.PubnubWebResponse
Channel=
ChannelGroup=
Description=Gateway Timeout. Please try again. If the issue continues, please contact PubNub support
ErrorDateTimeGMT=12/10/2015 5:47:56 PM
After receiving that particular message, I wait 60 seconds and reconnect to the subscription. It will run for about 60 seconds and then throw the error again.
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