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
133 stars 7 forks source link

Specific link in tweet blocking the whole sync progress #186

Closed IceCodeNew closed 2 weeks ago

IceCodeNew commented 4 months ago

Describe the bug

This tweet is blocking the whole sync progress: https://x.com/niuniu_8964/status/1797545897687122345

content-sync    ℹ post: → generated « https://www.gentosha.jp/s... » → ☁️ 1 chunk
Media type not supported (application/json;charset=utf-8)

The tweet itself is as simple as a single link, pointing to the following article: https://www.gentosha.jp/series/joseitachinohinkon

Digging into it, it turns out that the only json resource in the link I shared, was a third-party service loaded by that site. And it should not block the sync progress.

https://jsoon.digitiminimi.com/twitter/count.json?callback=jQuery191016546455030799834_1718088660601&url=https%3A%2F%2Fwww.gentosha.jp%2Fseries%2Fjoseitachinohinkon&_=1718088660602

To Reproduce

  1. To manually sync this tweet

Expected behavior

  1. Tweets with links synced without problem
  2. Tweets that failed to sync SHOULD NOT BLOCK the whole sync progress

Screenshots

image image

Additional supporting information

version of touitomamout:

louisgrasset/touitomamout@sha256:3ba94516e348e1be6a25e8f323cb134c6c12218e7590b3fe7c8fa552ce85cacf
JoshuaHolme commented 1 month ago

I am also getting the Media type not supported (application/json;charset=utf-8) on one of my accounts and it's a huge bummer

JoshuaHolme commented 1 month ago

as a workaround if you go into the cache json file, copy the last entry and replace the tweet ID with the id of the tweet that's blocking progress you can get it to skip over it and keep going, until they post another offending tweet that is

louisgrasset commented 2 weeks ago

Hello @IceCodeNew, the latest dev tag of Touitomamout relies on a brand new links redirection management. I've been able to sync a tweet having this link in it. I'm closing the issue for now.

Obviously, feel free to open another one if the problem persists