News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
503 - Service Temporarily Unavailable C# SDK
Tags: sdk
Aug 18, 2022 at 7:21am   •   3 replies  •  0 likes
Neil Hewitt

Attempting to do a basic Auth using the C# SDK (RingCentral.Net -Version 5.17.0)

RestClient rc = new RestClient("RC_CLIENT_ID", RC_CLIENT_SECRET, RC_SERVER_URL)
await rc.Authorize(JWT);

I am receiving the below error.

Response:
StatusCode: 503, ReasonPhrase: 'Service Temporarily Unavailable', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Connection: keep-alive
  Date: Thu, 18 Aug 2022 14:04:00 GMT
  Server: nginx
  Content-Length: 190
  Content-Type: text/html
}
Content: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

This seems to have been going on for most of today? Are you aware ?

Thanks.

3 Answers
answered on Sep 1, 2022 at 9:12am  

@Phong Vu I am re-visiting this integration after reading various forum topics. In the code above my assumption is the URL should read "https://platform.devtest.ringcentral.com/restapi/oauth/token" rather than "https://service.devtest.ringcentral.com/restapi/oauth/token"

However, i seem to be getting timeouts from the devtest endpoints.

I am hopeful that these timeouts are a know temporary issue and not related to anything i am doing?


 0
on Sep 2, 2022 at 2:00am   •  0 likes

I just run some test. It seems the issue is fixed and the sandbox operation is back to normal.

on Sep 1, 2022 at 10:53am   •  0 likes

The sandbox environment is currently down due to a power outage incident yesterday evening. The team is working on it right now. It may still take some time to get it back to normal.

answered on Aug 18, 2022 at 9:22am  

Sorry it was when i was typing it out in the question above and removing credentials. The error is still present the example above should not have the quotes around.

RestClient(RC_CLIENT_ID, RC_CLIENT_SECRET, RC_SERVER_URL)

Is the sandbox experiencing issues ? TIA.


 0
on Aug 18, 2022 at 10:08am   •  0 likes

No, sandbox is working normally.

on Aug 19, 2022 at 2:27am   •  0 likes

Any idea why just a basic authorisation would return a 503 ? I mean id expect an auth failure or something... Just not a 503 for whats seems to be a basic command.

on Aug 19, 2022 at 2:57am   •  0 likes

@Phong Vu

I have inspected the SDKs request which generates

Endpoint POST

https://service.devtest.ringcentral.com/restapi/oauth/token

headers

X-User-Agent: Unknown/0.0.1 RingCentral.Net/5.17.0
Authorization: Basic xxxxxxxxxxx==
Content-Type: application/x-www-form-urlencoded
Host: service.devtest.ringcentral.com
Content-Length: 789
Expect: 100-continue
Connection: Keep-Alive

body

grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=xxxxxxxxxxx

does the above look as expected ? Please note i have replaced the bearer and Assertation with

xxxxxxxxxxx

Any help is really appreciated as this is basic functionality and literally 2 lines of code which were taken directly from a previous post on this topic.

Thanks in advance.

answered on Aug 18, 2022 at 9:08am  
RestClient("RC_CLIENT_ID", RC_CLIENT_SECRET, RC_SERVER_URL)

Why the RC_CLIENT_ID is quoted? Did you put the client id directly in place, or it's just a mistake when you posted your question?


 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us