louisgrasset / touitomamout

Touitomamout is an easy way to synchronize your Twitter's tweets 🦤 to Mastodon 🦣 and Bluesky post ☁️ (also known as Twitter to Mastodon & Bluesky crossposter)
https://hub.docker.com/r/louisgrasset/touitomamout
GNU Affero General Public License v3.0
187 stars 9 forks source link

Crash: avatar downloadingError Unable to download media #237

Open xelab04 opened 4 hours ago

xelab04 commented 4 hours ago

Describe the bug Error running sync. profile-sync ⠇ avatar: ↓ downloadingError: Unable to download media:

This error is applicable to running both the manual version, as well as the Docker container.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/louisgrasset/touitomamout.git && cd touitomamout
  2. nvm use v20.16.0
  3. node dist/index.js .env
  4. No login to Twitter
  5. profile-sync ⠇ avatar: ↓ downloadingError: Unable to download media:

Expected behavior Sync would work. Or at least Touitomamout would not try downloading the avatar when SYNC_PROFILE_PICTURE is set to false. I understand full functionality isn't available without logging in, but I was hoping it would work at least on text/links.

Screenshots image

xelab04 commented 3 hours ago

Running the commands manually, as follows, works.

let r = await fetch(<URL>)
await x.blob()

The latter successfully returns:

size: 24875
type: "image/jpeg"
xelab04 commented 3 hours ago

Actually, replacing the lines at 11503 with the following fixed the issue.

let r = await fetch(t);
return await x.blob();
xelab04 commented 3 hours ago

Nevermind. That worked for a minute, now the error is back.