Open grasshoppermouse opened 3 weeks ago
The problem seems to be caused by the loading of the image in the tweet. During my tests this error occurred every now and then, but the text of the message does not help to understand the causes, and often trying to import again the error disappeared. Can you recover the image of the tweet present in the archive? Could it be corrupted or larger than 1 Mb? If it can help you locate it you can insert a "console.log" at line 237 of the app.ts file, like this:
const mediaFilename = `${process.env.ARCHIVE_FOLDER}/data/tweets_media/${tweet.id}-${media?.media_url.substring(i + 1)}`;
const imageBuffer = FS.readFileSync(mediaFilename);
console.log(mediaFilename);
The image is 378 KB, and doesn't seem to be corrupted:
I'm getting these errors too from time to time, just restarting works. I think these are just temporary network errors that should be retried (with some backoff)
Last item in the log: