shweshi / OpenGraph

A Laravel package to fetch Open Graph data of a website.
https://opengraph.shashi.dev
MIT License
157 stars 29 forks source link

Handling the curl_exec() error. #58

Closed alinmiron closed 4 years ago

alinmiron commented 4 years ago

I lost a lot of time trying to understand why OpenGraph::fetch() was returning empty array on server. Found out that the server's IP was blacklisted by the website I tried to get metadata from.(The curl_error() was returning "The requested URL returned error: 403 Forbidden") Same method, using same website was working fine on my development machine.

shweshi commented 4 years ago

@alinmiron Thanks.