question

John Gladson Moses avatar image
John Gladson Moses asked Embbnux Ji answered

Embedded widget app - Lines are getting disconnected intermediately with error popups

Lines are getting disconnected intermediately stating session expired with the errors attached screenshot.

The call is getting disconnected while the users are on call for more than 30 minutes and then the below attached errors pop

Dialer state is changing to offline intermediately.

Error:

Session expired. Please sign in

Cannot connect to the server. Please retry later

while on call for more than 30 mins. then intermediately below error comes and lines disconnects

going to offline intermediately

embeddable
1592939159134.png (17.3 KiB)
1592939179824.png (7.2 KiB)
1592939192674.png (15.5 KiB)
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.

Embbnux Ji avatar image
Embbnux Ji answered John Gladson Moses commented

Hi kailashvasan, which grant flow you are using for rc widget, authorization code flow or implicit flow?

https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/config-client-id-and-secret.md

For implicit flow, it refresh token with a hidden iframe. If network is disconnected when it refreshes, session will be expired. From offline badge, it shows there are networks issues at that time.

1 comment
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.

Thank you for the reply. How to find which auth flow is used in the Embedded widget app?

From the Ring central developers site, could see both flows enabled for the app. But wanted to find out which one used in the Embedded widget code.

0 Likes 0 ·
Embbnux Ji avatar image
Embbnux Ji answered
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