question

Andrea Vergottini avatar image
Andrea Vergottini asked Phong Vu answered

Webhook creating error

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 GuzzleHttp\Exception\RequestException: 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): GuzzleHttp\Handler\CurlFactory::createRejection()

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

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

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

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

#5 /var/www/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}()

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

How can i fix?

Regards


webhooks
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

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.

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