luisivan / fetch-meta-tags

Fetch and parse OG tags and metadata from any URL, the fast way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Response title: 'Just a moment...',

Panimaster opened this issue · comments

I am currently testing out this package with Netlify Functions. Interestingly it works as expected when testing it locally with the Netlify CLI but behaves differently when deployed to Netlify.

Response in local environment (testing with netlify cli)

{ url: 'https://www.coinbase.com/', title: 'Coinbase – Buy & Sell Bitcoin, Ethereum, and more with trust', description: 'Coinbase is a secure platform that makes it easy to buy, sell, and store cryptocurrency like Bitcoin, Ethereum, and more. Based in the USA, Coinbase is available in over 30 countries worldwide.', icon: 'https://assets.coinbase.com/assets/c5bcd28e307a0c77.png' }

Compared to response after Netlify Function was deployed

{ url: 'https://coinbase.com', title: 'Just a moment...', icon: 'https://coinbase.com/favicon.ico' }

Any ideas and help is highly appreciated :)

Sounds like it's catching Cloudflare's redirection page. I guess implementing redirection handling in the library would solve the issue!