I has an error when I try to broadcast on channel
Pusher error: cURL error 35: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/1234/events?auth_key=1234&auth_timestamp=1657903485&auth_version=1.0&body_md5=8dc41d7541776abcec80f03003969cf1&auth_signature=c55045c13d8186478889252fcecc021542b3e73854771a1f5bca0c870613eb3f. {"exception":"[object] (Illuminate\Broadcasting\BroadcastException(code: 0): Pusher error: cURL error 35: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/1234/events?auth_key=1234&auth_timestamp=1657903485&auth_version=1.0&body_md5=8dc41d7541776abcec80f03003969cf1&auth_signature=c55045c13d8186478889252fcecc021542b3e73854771a1f5bca0c870613eb3f. at /var/www/obelisk/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php:128)
I already started the server
enter image description here
When I try to connect to it it isn’t work if I used ssl configuration
enter image description here
I used for configuration
'local_cert' => '/etc/letsencrypt/live/obeliskapp.com/fullchain.pem',
'local_pk' => '/etc/letsencrypt/live/obeliskapp.com/privkey.pem',
Conclusion :
It is working if I didn’t use ssl certificate and when I try make it secure it isn’t work , can you help me for this issue.
hint: I updated the curl and when I try to use the full domain instead off 127.0.0.1 it can’t connect from the start .
Thanks
We have a route that pulls JSON data from same server that is hosting the front-end but on a different sub domain. The call always fails with a connection refused error. However, pulling the data by calling the resource route directly works without issue.
Here is the failing code.
$client = new Client();
$response = $client->get("http://api.xxxxx.xx./invoice/".$accountNumber."/".$invoiceNumber."/".$date);
$invoicecontent = json_decode($response->getBody()->getContents());
The above always fails with this error:
ConnectException in CurlFactory.php line 186:
cURL error 7: Failed to connect to api.xxx.xx port 80: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
However, opening the failing page in the browser works perfectly.
Server enviroment:
Windows 10
XAMPP
PHP 7
Any suggestions would be appreciated.
I migrated a Drupal 7 site. After successfully migrating the login stopped working. I believe the previous owners used ajax for login. The site works fine but I keep getting an ajax error when trying to login.
Ajax error
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /system/ajax
StatusText: OK
ResponseText: SMTP Error: Could not connect to SMTP host.
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"sparkly","theme_token":"bzLLfcRfRiocJx3GDZ0v8146Ktfuo0YMfghj8B5678","js":{"sites\/all\/modules\/ctools\/js\/ajax-responder.js":1}},"better_exposed_filters":{"datepicker":false,"slider":false,"settings":[]},"chosen":{"selector":"","minimum_single":25,"minimum_multiple":25,"minimum_width":800,"options":{"disable_search":false,"disable_search_threshold":1,"search_contains":false,"placeholder_text_multiple":"Choose some options","placeholder_text_single":"Choose an option","no_results_text":"No results match","inherit_select_classes":true}},"urlIsAjaxTrusted":{"\/browse":true},"jquery_ajax_load":{"trigger":".jquery_ajax_load\r","target":"#jquery_ajax_load","toggle":1,"animation":0,"base_path":"\/","module_path":"sites\/all\/..."validateOnSubmit":"1","showMessages":"0","errorElement":"span"},"rules":{"name":{"required":true,"messages":{"required":"Username or e-mail address field is required.","maxlength":"Username or e-mail address field has to have maximum 254 values."},"maxlength":254}}}},"general":{"usexregxp":0,"months":{"January":1,"Jan":1,"February":2,"Feb":2,"March":3,"Mar":3,"April":4,"Apr":4,"May":5,"June":6,"Jun":6,"July":7,"Jul":7,"August":8,"Aug":8,"September":9,"Sep":9,"October":10,"Oct":10,"November":11,"Nov":11,"December":12,"Dec":12}},"groups":{"user-pass":{}}}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003Cscript…
Any idea how to fix this?
Drush also keeps giving me this error:
"Drush command terminated abnormally due to an unrecoverable error."
I randomly get following error. It doesn't happen everytimes.
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
What I did try are
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 don't know where to look further. Please help!
FYI: cURL support = enabled, cURL Information = 7.15.5, OpenSSL Version = 0.9.8e (latest i can update on Centos 5.7)
All of these errors relate to the connection timing out during various phases of the HTTP process:
in the first, the connection was established, but no (or very little) data was returned
in the second, the connection couldn't be established at all
in the third, the TCP connection was established, but was dropped somewhere in the negotiation of a secure channel
As Shawn E. Carter says above, this bug appears to be the same issue https://developers.facebook.com/bugs/328399317246454?browse=search_4ff4817e0c5ec9768956669 as is this question Can not connect to Facebook with a curl request
Ultimately, it just means that Facebook's API server was a little slower than expected. You could try using a longer timeout, or, since it's intermittent, catching the exception and trying again.
I just follow same code from Facebook SDK example.
If FB App point to my local desktop, it will get Facebook uid and user basic information (ex email) if APP get permission from OAUTH request.
But when I upload files to server, executing $facebook->api('/me');
Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in
/xxx/src/facebook.php on line 622
I still can't figure out why. It comes from CURL or SSL setting?
My remote server support SSL and CURL is enabled. My local is only CURL but no SSL support.
I think my Facebook SDK is old version, only facebook.php without base_facebook.php.
I try to use new version but can't run any program because crt error.
You get this error because your host cannot access the Facebook API. It might have an old version of Open SSL, can you check the current version on the server?
Try to connect using SSL from your local setup as well as it might be easier to debug on your local machine.
Also, see about that crt (CRC?) error and try to fix that first (don't shave too many Yak's though).