PHP Fatal Error: Unused CurlException: 28 and 35 in Facebook Applications

I accidentally get the following error. This does not happen every time.

PHP Fatal error:  Uncaught CurlException: 28: Operation timed out after 60 seconds with 47 out of 47 bytes received
PHP Fatal error:  Uncaught CurlException: 28: connect() timed out!
PHP Fatal error:  Uncaught CurlException: 35: Unknown SSL protocol error in connection to graph.facebook.com:443 

I tried

1. adding CURLOPT_SSLVERSION     => 3 (even try changing to 2)
2. changing 'https://api-read.facebook.com/' to 'api_read'  => 'https://api.facebook.com/'
3. adding   $opts[CURLOPT_SSLVERSION] = 3;                                          
            curl_setopt( $ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
4. Changing CURLOPT_CONNECTTIMEOUT => from 10 to 60
5. closing IPv6 and add 69.171.224.54   graph.facebook.com to /etc/hosts (several other IPs also added)
6. telnet graph.facebook.com 443 and nslookup graph.facebook.com

I do not know where to look further. Please, help!

FYI: cURL support = enabled, cURL Information = 7.15.5, OpenSSL Version = 0.9.8e (the latter I can update on Centos 5.7)

+5
source share
1 answer

All these errors relate to synchronization of connection time at different stages of the HTTP process:

  • in the first, the connection was established, but no (or very few) data was returned
  • in the second, the connection cannot be established at all
  • in the third, a TCP connection was established, but was deleted somewhere in the negotiations for a secure channel

. , , , https://developers.facebook.com/bugs/328399317246454?browse=search_4ff4817e0c5ec9768956669, Facebook

, API Facebook , . - , , .

+3

All Articles