cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Occasional Visitor

Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Hi,

 

I have configured the sample code (addOrUpdateContact.php) with API key and token for API Version 2. But it shows the below error. Please help me to resolve this.

 

I am working in my local machine.

 

Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException' with message 'cURL error 60: SSL certificate problem: self signed certificate in certificate chain' in C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php:127 Stack trace: #0 C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php(91): GuzzleHttp\Ring\Client\CurlFactory::createErrorResponse(Array, Array, Array) #1 C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php(96): GuzzleHttp\Ring\Client\CurlFactory::createResponse(Array, Array, Array, Array, Resource id #75) #2 C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php(68): GuzzleHttp\Ring\Client\CurlHandler->_invokeAsArray(Array) #3 C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\ringphp\src\Client\Middleware.php(54): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array) #4 C:\xampp\htdocs\constant-c in C:\xampp\htdocs\constant-contact-api\MYPROJECT\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 51

Tags (1)
5 REPLIES 5
Honored Contributor

Re: Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Hello,

 

Based on the information that you've provided, it appears that there is a problem with the SSL certificate not being accepted by your local web-server. You can test to make sure that it's not your computer's root certificates by attempting to load https://api.constantcontact.com/, which should show a service not found error page.

 

If you see the proper error page when loading the above in your browser, then the next thing to check is that the certificates on your web server are likely out of date. Since I see that you're using xampp (which is Apache based), it may be that apache has an old root certificate that does not accept the Constant Contact SSL certificate. If you have an older xampp install, the simplest way to resolve this may be to get an updated install of xampp, rahter than attempting to update the certificates that Apache is using.

 

If you do have any questions for me, please let me know!

 

Sincerely,

Elijah G.
API Support Engineer
Occasional Visitor

Re: Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

I am getting the same error. I had updated the xampp to new version i.e. 5.5.30 but the error still showing. Should i have to add certificates in apache now? If yes, then can you please tell that how/where to get the certificates of Constant Contact.

Honored Contributor

Re: Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Hello,

 

If you're still having the issue after updating, then the next step would be to try adding the SSL certificate directly to Apache. Probably the easiest way to get the SSL certificate would be using the export function in Mozilla Firefox. You can get the certificate by following these steps:

  1. Open https://api.constantcontact.com/ in Firefox
  2. Click on the Padlock icon next to the URL and click on More Information
  3. Click the View Certificate button
  4. Under the Details tab, you will find an Export button
  5. Choose the name and location to save the certificate file

 

This way you can guarantee that the certificate you're using is the proper certificate. If you're having any difficulties with the certificate, please let me know. While I'm not an Apache expert of any sort, I am happy to try and help where I can!

 

Sincerely,

Elijah G.
API Support Engineer
Occasional Visitor

Re: Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Please I need help.  I have the same problem

 

I did:

  1. Open https://api.constantcontact.com/ in Firefox
  2. Click on the Padlock icon next to the URL and click on More Information
  3. Click the View Certificate button
  4. Under the Details tab, you will find an Export button
  5. Choose the name and location to save the certificate file

But, no work.    I am moving mi server. The new server is a windows server.  I the new server constant contact form NO work.  I deactived plugin and weppage show ok, but form no work   Can you help me

Moderator

Re: Fatal error: Uncaught exception 'GuzzleHttp\Ring\Exception\RingException'

Hello,

This error likely means that your root or intermediate certificate(s) is invalid. I know that this can be a common issue with PHP on Windows partialy due to incompatibility with CAs.

One possible solution would be to update your CA cert on your server. First download the most recent CA at https://curl.haxx.se/ca/cacert.pem and place it on your server. Then edit your php.ini and add openssl.cafile={directory}/cacert.pem || (It should point to where you placed the file on your server).

Unfortunately my ability to troubleshoot your website beyond this is limited. You mentioned a plugin, what plugin are you using? Have you reached out to the developer of that plugin for assistance?

Sincerely,
David B.
Tier II API Support Engineer