News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Uncaught Exception Response has unsuccessful status
Tags: rest api
Jan 21, 2020 at 6:12am   •   1 replies  •  0 likes
Anthony Gigliotti

Getting the following error after having built a php site that calls the ringcentral API. First the php site gets the extension list of a couple of users, then it allows the user to remove or update the forwarding number. Could it be that we are running up against a request limit? Maybe performing a login for every request could be unnecessary and it appears 5 logins per minute is the limit? The error is as follows (doesn't seem to indicate what type of error is happening)

Fatal error: Uncaught exception 'Exception' with message 'Response has unsuccessful status' in /var/www/html/Ppt_combined_2/public_html/application/third_party/ringcentral/vendor/ringcentral/ringcentral-php/src/Http/Client.php:33 Stack trace: #0 /var/www/html/Ppt_combined_2/public_html/application/third_party/ringcentral/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(214): RingCentral\SDK\Http\Client->send(Object(RingCentral\Psr7\Request)) #1 /var/www/html/Ppt_combined_2/public_html/application/third_party/ringcentral/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(301): RingCentral\SDK\Platform\Platform->sendRequest(Object(RingCentral\Psr7\Request), Array) #2 /var/www/html/Ppt_combined_2/public_html/application/third_party/ringcentral/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(123): RingCentral\SDK\Platform\Platform->requestToken('/restapi/oauth/...', Array) #3 /var/www/html/Ppt_combined_2/public_html/application/views/mobile/RC_get_api_response.php(26): RingCentral\SDK\Platfo in /var/www/html/Ppt_combined_2/public_html/application/third_party/ringcentral/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 44

1 Answer
answered on Jan 21, 2020 at 7:49am  

You mentioned that there are several API calls. So which API call failed with these error?

Can you post a few line of code where you call an API that failed. And also did you try to print the error message like this too?

}catch (\RingCentral\SDK\Http\ApiException $e) {
  // Getting error messages using PHP native interface
  print 'Expected HTTP Error: ' . $e->getMessage() . PHP_EOL;


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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