Skip to main content

Getting the error below. Getting a connection and it shows up as error on the dashboard. Use the tutorial code examples but does not auth.


Array ( [username] => +13128680141 [extension] => 101 [password] => ****** )

Fatal error: Uncaught GuzzleHttpExceptionRequestException: cURL error 56: Received HTTP code 405 from proxy after CONNECT (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187 Stack trace: #0 /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttpHandlerCurlFactory::createRejection(Object(GuzzleHttpHandlerEasyHandle), Array) #1 /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttpHandlerCurlFactory::finishError(Object(GuzzleHttpHandlerCurlHandler), Object(GuzzleHttpHandlerEasyHandle), Object(GuzzleHttpHandlerCurlFactory)) #2 /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttpHandlerCurlFactory::finish(Object(GuzzleHttpHandlerCurlHandl in /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 50

Hi Giancarlo,

I am not sure how you posted a curl request but the log above shows me some suspect that the login credentials are in an array (Array ( [username] => +13128680141 [extension] => 101 [password] => ****** ) ). They need to be in a JSON format. Can you double check and post the complete curl request if this does not help.

+ Phong
I am using PHP SDK and the error above I get when platfrom->login(username,extension,password); I followed the tutorial on the site.  Ran the command line below and this is the results.

curl -u '184c_8YfSKa0xj6rtn0DyA:HnBtP-ZGT3SLYTICaKFnJgLwbwLhF1SIalCS53YZwoEg' -d 'grant_type=authorization_code&username=+13128589951&extension=101&password=#Paradise12' -X POST https://platform.devtest.ringcentral.com/restapi/oauth/token

{

  "error" : "invalid_request",

  "error_description" : "Parameter [code] value is invalid",

  "errors" : [ {

    "errorCode" : "CMN-101",

    "message" : "Parameter [code] value is invalid",

    "parameters" : [ {

      "parameterName" : "parameterName",

      "parameterValue" : "code"

    } ]

  } ]

}

Reply