question

Customer Service avatar image
Customer Service asked Phong Vu edited

CURL Update Crashed Api

A client's custom API stopped working last night after a curl update. Our server admins were able to roll back the update and everything worked just fine again. But, they indicate the update is going to be downloaded again - so, what can be done to make sure the RingCenteral PHP SDK continues to work? It was installed using COMPOSER.


This is package that crashed the API:



Command Line : -y install ea-libcurl-7.79.1-2.2.3.cpanel.x86_64.rpm

Transaction performed with:

Installed rpm-4.8.0-59.el6.x86_64 @base

Installed yum-3.2.29-81.el6.centos.0.1.noarch @updates

Installed yum-plugin-fastestmirror-1.1.30-42.el6_10.noarch @updates

Packages Altered:

Updated ea-libcurl-7.69.1-2.2.3.cpanel.x86_64 @EA4

Update 7.79.1-2.2.3.cpanel.x86_64 @/ea-libcurl-7.79.1-2.2.3.cpanel.x86_64

rest api
2 comments
1 |3000

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

Customer Service avatar image Customer Service commented ·

This is the error from the log before we rolled-back the CURL update from last night:


[17-Apr-2020 13:03:45 UTC] PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 3: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/***CLIENTDIR***/sdk-php-rcentral/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186

Stack trace:

#0 /home/***CLIENTDIR***/sdk-php-rcentral/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)

#1 /home/***CLIENTDIR***/sdk-php-rcentral/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))

(continued)

0 Likes 0 ·
Customer Service avatar image Customer Service commented ·

(continued)

#2 /home/***CLIENTDIR***/sdk-php-rcentral/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))

#3 /home/***CLIENTDIR***/sdk-php-rcentral/vendor/guzzlehttp/guzzle/src/Handl in /home/***CLIENTDIR***/sdk-php-rcentral/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 52

0 Likes 0 ·

1 Answer

Phong Vu avatar image
Phong Vu answered Phong Vu edited

Can you check you dependencies based on the SDK requirements https://github.com/ringcentral/ringcentral-php/blob/master/composer.json

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