Intermittent errors with cURL and streams

My website uses cURL on some scripts (one connects to Facebook, other to another REST API), everything was working perfectly until yesterday, now I’m getting a lot of cURL code 7, dns resolving and host unrecheable errors, with both cURL and remote streams. Is anyone experiencing the same problems?

Link to those errors? :slight_smile:

You can only see errors through the logs:
https://smarteditorwebapp.000webhostapp.com/logs/fbshare.log

Sample:
*** fbshare request log ***
ERROR CODE: 6
ERROR MESSAGE: Could not resolve host: graph.facebook com; Temporary failure in name resolution
ERROR TRACE: #0 /storage/ssd4/806/3716806/public_html/lib/Facebook/FacebookClient.php(216): Facebook\HttpClients\FacebookCurlHttpClient->send(‘https://graph.f…’, ‘GET’, ‘’, Array, 60)
#1 /storage/ssd4/806/3716806/public_html/lib/Facebook/Facebook.php(469): Facebook\FacebookClient->sendRequest(Object(Facebook\FacebookRequest))
#2 /storage/ssd4/806/3716806/public_html/lib/Facebook/Facebook.php(341): Facebook\Facebook->sendRequest(‘GET’, ‘/me?fields=name…’, Array, Object(Facebook\Authentication\AccessToken), NULL, ‘v2.11’)
#3 /storage/ssd4/806/3716806/public_html/fbshare.php(173): Facebook\Facebook->get(’/me?fields=name…’)
#4 /storage/ssd4/806/3716806/public_html/fbshare.php(272): processRequest(Array)
#5 {main}

I intentionally removed a dot before “com” on sample line 3 due to links limitation in posts.

1 Like

Can you try again now?
Does not work, wait a day.
If the problem persists, your only choice is to upgrade to Hostinger

Same thing… same errors… I’ll wait a day or two to see if it persists. I was evaluating the free plan before going to a paid one. Will I be free of such problems on hostinger?

1 Like

You SHOULD be, anyway, if it doesn’t work there, you have a 30day money back :slight_smile:

Has your issue been resolved?

Yes, I just had to wait. Thanks.

1 Like

Glad to hear it! Good Luck! :slight_smile:

1 Like