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

meta tags with data-rh attribute are not taken into account #57

Closed alinmiron closed 4 years ago

alinmiron commented 4 years ago

Describe the bug This URL https://www.usnews.com/news/top-news/articles/2020-06-07/colin-powell-endorses-joe-biden-for-president contains meta tags with data-rh attributes

To Reproduce use OpenGraph; OpenGraph::fetch('https://www.usnews.com/news/top-news/articles/2020-06-07/colin-powell-endorses-joe-biden-for-president', true);

Expected behavior meta tags array to be populated, instead empty array

alinmiron commented 4 years ago

after more testing (and since we introduced the handling of errors) I saw that the problem is different. That server blocks Curl access. shweshi/OpenGraph/Exceptions/FetchException with message 'Operation timed out after 30000 milliseconds with 0 bytes received'