animemoeus / mono-backend

Monolithic Backend System Built with Django 🔥
https://api.animemoe.us
MIT License
6 stars 0 forks source link

Twitter Downloader Weird Issue #456

Closed animemoeus closed 1 month ago

animemoeus commented 1 month ago

There is a weird error when the user is trying to download this tweet.

https://x.com/rakuten_pacific/status/1845374551762534712?s=46&t=yRbmW3LBSHPc4JceoqUgFA

image


Please investigate and fix this issue

animemoeus commented 1 month ago

I just found the problem, and its very weird 🤔

{
    "chat_id": "939376599",
    "photo": "https://pbs.twimg.com/amplify_video_thumb/1845374508246630404/img/3-ICXTNr463mirF6.jpg",
    "parse_mode": "HTML",
    "disable_web_page_preview": "True",
    "reply_markup": {
        "inline_keyboard": [
            [
                {
                    "text": "Download",
                    "web_app": {
                        "url": "https://api.animemoe.us/twitter-downloader/safelink/?key=78093f27-ff7f-4e42-a26f-62b4a8ffa5b7"
                    }
                }
            ]
        ]
    }
}

image

We will got the too many request error when the photo url is https://pbs.twimg.com/amplify_video_thumb/1845374508246630404/img/3-ICXTNr463mirF6.jpg. lol


But another url just working fine

image

animemoeus commented 1 month ago

Post Deployment Test

image image

✅