Uncaught CurlException: 7: Failed to connect - facebook

I have a live facebook application. Starting from last week, I keep getting
PHP Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:2110:3f03:face:b00c:0:1: Network is unreachable
It is thrown in base-facebook.php file in facebook sdk 3.1.1 (Using the latest version)
What could be the cause?
Thanks in advance.

Maybe,you should check Network settings for IPV6.
at My application , Error continued to occur .
Setting up the network and Programming has not changed.
So , I've change Network settings for IPV6. I've solved it.

Related

Unable to open ejabbered web dashboard localhost:5280

I am new to ejabberd and trying to play with it. I installed ejabbered following the instructions present at official doc page with username and password. I am able to start the ejabbered server and connect to it through Java using "Smack" API's.
However, when I try to open Web Dashboard at http://localhost:5280/admin/ and then login with admin user, It doesn't show up anything. When I checked logs, it shows following erros -
2020-03-13 21:03:17.618 [error] <0.1965.0>#ejabberd_http:apply_custom_headers:860 CRASH REPORT Process <0.1965.0> with 0 neighbours crashed with reason: bad argument in call to maps:from_list([html]) in ejabberd_http:apply_custom_headers/2 line 860
2020-03-13 21:03:17.619 [error] <0.535.0>#ejabberd_http:apply_custom_headers:860 Supervisor ejabberd_http_sup had child undefined started with {ejabberd_http,start_link,undefined} at <0.1965.0> exit with reason bad argument in call to maps:from_list([html]) in ejabberd_http:apply_custom_headers/2 line 860 in context child_terminated
Pleasse help me out with this. Thanks!
Yes, that problem was introduced in ejabberd 20.02, and it's fixed in the following versions.
You have two options:
Download ejabberd 20.01, that doesn't have this problem
Or download ejabberd 20.03 or above.

Flutter - Unhandled Exception: SocketException:

I am facing below error while accessing the web services in android app. But its working fine in iOS app.Pl help us to resolve this issue
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 47992
Also I have faced the same problem.
The way I have solved my problem is,
I made sure that there is no error in my code. Then I uninstalled my app, after that I restarted my phone and install the app again. Then it start working.
I hope this will help..

Couldn't register com.xxx.appname with the bootstrap server. Error: unknown error code.Program received signal: “SIGABRT”

I am getting this error while running in device.
Couldn't register com.xxxx.appname with the bootstrap server.
Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.
Now i rectified this problem .I have posted answer also if anyone got this error follow my post..
Try this,
Deleteing the app, restarting Xcode, clean build, didn't do anything
--> restart your computer
--> restart the phone

Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in

Yesterday was fine, but today, suddenly, my web app report an error while accessing Facebook PHP API.
At first, the error was connection time out. So, I added the time in base_facebook.php, changed the variable
CURLOPT_CONNECTTIMEOUT => 10 into
CURLOPT_CONNECTTIMEOUT => 60
Now, my web app reports another error:
Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in xxx\src\base_facebook.php on line 972
Ah, I run my app on localhost in Windows (XAMPP 1.7.7).
For testing it, I also run the example codes from the newest facebook API in github.
I also have restarted my Apache server, and It still gives the same error.
This is probably a server configuration problem on your side.
Check whether the host has blocked the ports 80 and 443.

Zend_Http_Client_Adapter_Exception Error #0

I use the Zend libray, especially Loader class. But I take the following exception:
Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to ssl://www.googleapis.com:443. Error #0:
I should say that when I run my code local, I don't face any problem, but the exception show when I try to run my file in server. The server I use has ssl security. Is there any possibility to there is any conflict with it?
This error may be caused by SSL level error like untrusted/expired SSL certificate which can be caused by wrong local system date.
If you on Ubuntu try add in your php.ini
openssl.capath=/etc/ssl/certs
For more info read this issue