Author Topic: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26  (Read 9503 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26
« on: สิงหาคม 03, 2012, 07:13:56 PM »
http://stackoverflow.com/questions/11333480/php-fatal-error-uncaught-curlexception-28-and-35-on-facebook-apps

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

จาก error
Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26: No route to host

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26
« Reply #1 on: สิงหาคม 07, 2012, 03:58:44 PM »
sysctl -w net.ipv6.conf.all.disable_ipv6=1