Skip to main content

Hi,I am trying to create a new webhook.

I followed the guide https://developers.ringcentral.com/guide/notifications/webhooks/quick-start#php

After starting ngrow and starting the php file I get this error

PHP Fatal error: Uncaught GuzzleHttpExceptionRequestException: cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /restapi/oauth/token in /var/www/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:211

Stack trace:

#0 /var/www/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttpHandlerCurlFactory::createRejection()

#1 /var/www/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttpHandlerCurlFactory::finishError()

#2 /var/www/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttpHandlerCurlFactory::finish()

#3 /var/www/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttpHandlerCurlHandler->__invoke()

#4 /var/www/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttpHandlerProxy::GuzzleHttpHandler{closure}()

#5 /var/www/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttpHandlerProxy::GuzzleHttpHandler{closure}()

#6 /var/www/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttpPrepareBodyMiddlewa in /var/www/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 52

How can i fix?

Regards


When did you install the RingCentral PHP SDK? Can you reinstall the SDK and try again. Also, what is your PHP version? I just run a test on my local machine with PHP 8.1.9 and it works well.


Reply