question

tech-012866 avatar image
tech-012866 asked Anirban answered

Receiving 503 Service Unavailable on some endpoints in Sandbox mode

Some endpoints of the API return 503 Service Unavailable such as the endspoints to sync call logs, retreive call logs, sync messages and retreive messages. The endpoints to retreive account information and user information however are working fine and also the calls to subscribe to pubnub events works too.
Here's an exemple of a call to access call logs:

        1. Request URL:
          https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log
        2. Request Method:
          GET
        3. Status Code:
          503 Service Unavailable
        4. Remote Address:
          192.209.29.78:443
        5. Referrer Policy:
          no-referrer-when-downgrade
      1. Response Headers
        1. Access-Control-Allow-Credentials:
          true
        2. Access-Control-Allow-Origin:
          http://jurisconcept.ca
        3. Access-Control-Expose-Headers:
          Date, RoutingKey, Content-Length, Content-Encoding, Retry-After, RCRequestId, X-Rate-Limit-Group, X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Window, ETag
        4. Connection:
          keep-alive
        5. Content-Language:
          en-US
        6. Content-Length:
          177
        7. Content-Type:
          application/json;charset=UTF-8
        8. Date:
          Mon, 18 Feb 2019 21:58:24 GMT
        9. RCRequestId:
          5018112c-33c8-11e9-9ec0-005056bb26b9
        10. Retry-After:
          40
        11. RoutingKey:
          SJC12P01PAS02
        12. Server:
          nginx
        13. X-Rate-Limit-Group:
          heavy
        14. X-Rate-Limit-Limit:
          10
        15. X-Rate-Limit-Remaining:
          9
        16. X-Rate-Limit-Window:
          60
      2. Request Headers
        1. Provisional headers are shown
        2. Accept:
          application/json
        3. Authorization:
          bearer U0pDMTJQMDFQQVMwMHxBQUJGYVVZcmlhNVpzYkhsSTlEUVVCT3JZVEpremd4ellvNjV6T3UyWEhna2liaFFYTE81Y0RnT1RGV0pTSWY3TmdoNF9QWWRPMEVYNENYQjd4dmJsWHJoTzZKcVBrRTlVdzA4RWFEc3FFZ0lVRlhOelg4cDZ3OFhVVlhwbDgwMVVILXlXaEpqdGpIXzF1aDNNYnZsTHRHd1QzbkNNOXdLNl9OeTd2U25rWDM3aXJTcHI0QkhicExuZDg1M3NDeFZ2Z2F1VzUwLUViUEZhTXpDUkp0eWUtRTR8ZWpnRjNnfG1CRndkX1d3RlVKODJUVy1rRUNPTGd8QUE
        4. Client-Id:
          kG8uXDKbRfG_QyRcdid1LQ
        5. Content-Type:
          application/json
        6. Origin:
          http://jurisconcept.ca
        7. Referer:
          http://jurisconcept.ca/app/
        8. User-Agent:
          Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
        9. X-User-Agent:
          RCJSSDK/3.2.1
General Topic
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.

Tyler Liu avatar image
Tyler Liu answered

503 Service Unavailable means there is something wrong on the RingCentral server side. You need to wait for a little while and try again. If the issue persists, please report the issue on a help ticket to the developer support team

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.

igor-bebin avatar image
igor-bebin answered
Thank you for reporting, the issue was fixed. Should work now.

Thanks,
Igor
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.

tech-012866 avatar image
tech-012866 answered
Thank you for the quick reply! Everything works now.
Great support 
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.

Anirban avatar image
Anirban answered

Sometimes we face this issue and it automatically resolved after 15 to 20 seconds of time. It can happen for many reasons like maintenance mode or even high traffic and services not accessible for that time. Whatever be the reason you cannot predict so, better you can ask the developer support team for help. You need to provide your account details for them to investigate the exact reason. You can also create a support ticket regarding the same.

Check this: https://devcommunity.ringcentral.com/ringcentraldev/topics/maintenance-mode-tgdbq5wfmye11

"Usually this error code along with HTTP 503 status can be returned when traffic is switched between our data centers. It usually can happen at night time when API traffic is minimal and doesn't last longer than 10-15 seconds. In case of such error API also returns Retry-After HTTP header which indicates when client should retry the original request."

Ref Benjamin already mentioned here: https://forums.developers.ringcentral.com/questions/351/api-overloadedissues.html

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