question

manmeet-kaur avatar image
manmeet-kaur asked Anirban answered

Call failed. An error occurred while sending the request

I am getting below error while try to get the token from the,

await rc.Authorize(username, extension, password);


which throughs below exception,

{"Call failed. An error occurred while sending the request. POST https://platform.ringcentral.com/restapi/oauth/token"}


Log:

at Flurl.Http.FlurlRequest.<HandleExceptionAsync>d__23.MoveNext()

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext()

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)


authentication
1 |3000

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

1 Answer

Anirban avatar image
Anirban answered

Can you check the below reference:

https://community.ringcentral.com/questions/98778/api-c-authentication-call-failing.html

If it is similar to your issue?

1 |3000

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