question

Customer Service avatar image
Customer Service asked ·

API Error Detail

Hello,

My API console says I have errors. How can I see the error details through the Console. The Endpoints did not provide the error detail, just some times. I need the error detail to troubleshoot.

Thank You,

Jay

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

For clarification, when I say API Console, I mean the API App info listed on:

https://developers.ringcentral.com/my-account.html#/application-dashboard

I'm writing an ASP.Net web forms application, not a .Net Console application.

0 Likes 0 · ·

1 Answer

· Write an Answer
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

Which API are you using?

The first step is test your API in https://developers.ringcentral.com/api-reference/ or in a postman tools with all the input data.

If it still gives you an error there, not the HTTP error status, API response and put here.

We can then troubleshoot the issue.

3 comments Share
1 |1000 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.

I used this NuGet package:

Install-Package RingCentral.Net -Version 3.2.0


0 Likes 0 · ·

Which authorization method should an ASP.Net application use?
Can you point me to a code sample in C#?
The samples i saw seemed to use password-flow, yet in other places I saw that only console apps can use password flow.

When I was setting up my API App, the QuickStart said that the most common App Type was 'Web server.' However, I could not find a C# code example for Authorization from Web server.

0 Likes 0 · ·

My code (in VB.Net but happy to work from C#)

Dim restClient As RestClie
restClient = New RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_PRODUCTION)
restClient.Authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD).Wait()

Dim parameters = New MeetingRequestResource()
parameters.topic = "Test Meeting"
parameters.meetingType = "Instant"
parameters.allowJoinBeforeHost = True
parameters.startHostVideo = True
parameters.startParticipantsVideo = False
Dim resp = Await restClient.Restapi().Account().Extension().Meeting().Post(parameters)

The code never returns a response from Dim resp = Await restClient.Restapi()..... and no exception is thrown.

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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