News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

Search
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
Getting cURL error 56: Received HTTP code 405 from proxy after CONNECT
Tags: getting started
Mar 22, 2018 at 7:52pm   •   2 replies  •  0 likes
giancarlo-cunis

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 GuzzleHttp\Exception\RequestException: 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): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandl in /Applications/MAMP/htdocs/Paradise/wp-content/plugins/ring-central/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 50

2 Answers
answered on Mar 27, 2018 at 12:27pm  
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"

    } ]

  } ]

}

 0
answered on Mar 27, 2018 at 11:27am  
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

 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

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