---
title: "Comment by Sanjana Ekanayake on \"Generating Link Previews with React and Nodejs\" | Hashnode"
description: "I have tried this approach, but unfortunately, for some URLs, we cannot fetch images with their metadata properties. How do you suggest handling that?"
url: "https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65f7e7337f7c4094fec9ba5d"
---

[Discussion](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757)

Comment [Generating Link Previews with React and Nodejs](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757)

[Sanjana Ekanayake](https://hashnode.com/@Sanjanae)

[Mar 18, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65f7e7337f7c4094fec9ba5d)

I have tried this approach, but unfortunately, for some URLs, we cannot fetch images with their metadata properties. How do you suggest handling that?

[Oduro Twumasi John Barnes](https://hashnode.com/@jaybarnes33)

[Sep 2, 2024](https://hashnode.com/posts/generating-link-previews-with-react-and-nodejs/641016ab4bc34eaca048f757/comment/65f7e7337f7c4094fec9ba5d#reply-66d6057f2973ded7bc13fa7b)

Yeah, I forgot to mention that for some websites the markup is generated from javascript by the browser and for most of these a simple fetch request won't return all the needed content.

You can try another approach where you fetch the content with a headless browser instead.
