lukehorvat / screenshot-tweet

Screenshot a tweet.
MIT License
68 stars 6 forks source link

Always returning "Tweet doesnt exist" #12

Open mattmcegg opened 4 years ago

mattmcegg commented 4 years ago

I am attempting to use via API on my next.js site. I am running this on server side.

import screenshotTweet from "screenshot-tweet";

async function handleGetTweet() {
  try {
    let tweet = screenshotTweet("https://twitter.com/elonmusk/status/1312545997499719680")
  } catch (error) {
    console.error(error);
  }
};

Error: Tweet does not exist!

This happens for any tweet I try.