laurengarcia / url-metadata

NPM module: Request a url and scrape the metadata from its HTML using Node.js or the browser.
https://www.npmjs.com/package/url-metadata
MIT License
166 stars 43 forks source link

Encoded favicon URL gives 404 #86

Closed MartinMalinda closed 5 months ago

MartinMalinda commented 5 months ago

When I'm loading url like this one https://goout.net/cs/colours-of-ostrava-2024/szqghcw/. I'm getting favicon URL https://goout.net/apple-touch-icon-144x144.png%3Fv=1.0 which gives 404 because correct url is https://goout.net/apple-touch-icon-144x144.png?v=1.0.

In the HTML response of the site it's fine, so the url encoding is being done sometime later. Maybe some parsing library is doing this.

MartinMalinda commented 5 months ago

Nevermind. If I run url-metadata locally as part of the test suite it works well. For some reason it behaves differently in Netlify function for me.

laurengarcia commented 5 months ago

Good to know.