e-oj / grabity

Generate link previews from pages with Open Graph or Twitter Cards markup. Just grab it! 🎣
https://www.npmjs.com/package/grabity
MIT License
291 stars 15 forks source link

Doesn't work on some websites and crashes the app #27

Open yo-png opened 4 years ago

yo-png commented 4 years ago

Hey, I'm using grabity for my chat to preview the URL. But for Facebook or Instagram, it doesn't work and crashes the app. Here is my code that I call in ajax:

.get("/og-data", async(req, res)=>{
    const data = await grabity.grabIt(req.query.url);
    res.json(data)
})

Like I said when I use this for Flickr and a lot of author websites it works, but for Facebook, Instagram and I think others it doesn't work and I get this error that crashes the app:

Assertion failed: new_time >= loop->time, file c:\ws\deps\uv\src\win\core.c, line 309 [nodemon] app crashed - waiting for file changes before starting...

Someone help please it's really important for me.

Haisum92 commented 4 years ago

Facing the same issue at most of the url from Instagram and Facebook.