ash-jc-allen / favicon-fetcher

A Laravel package for fetching favicons from websites.
MIT License
167 stars 13 forks source link

How to handle cURL error 6: Could not resolve host #14

Closed markoman78 closed 2 years ago

markoman78 commented 2 years ago

Hi! First of all, thanks for this great package.

I'm building service which handles 500k+ domains and there are many domains that are not available. When this happens, we will get cURL error for "Could not resolve host".

Any suggestions how to handle this error so that we will get favicon as null?

Thanks!

ash-jc-allen commented 2 years ago

Hi @markoman78, thanks!

This is a good question. Off the top of my head, I think the easiest thing that you could try would be to use a different driver other than the HttpDriver.

But, if you can give me an example of a URL that you've been using that's giving this error, I'd be happy to do some debugging and see if there's some fixes we can add 😄

ash-jc-allen commented 2 years ago

I'm going to close this for the time being. But, if you're still having the issue and need some help, feel free to reopen it 🙂