Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error when run tel_download_video locally #61

Open
yanamazo opened this issue May 6, 2024 · 2 comments
Open

404 error when run tel_download_video locally #61

yanamazo opened this issue May 6, 2024 · 2 comments

Comments

@yanamazo
Copy link

yanamazo commented May 6, 2024

I grab src links from the video tag. It looks like this: https://web.telegram.org/k/stream/%7B%22dcId%22%3A4%2C%22location%22%3A%7B%22_%22%3A%22inputDocumentFileLocation%22%2C%22id%22%3A%225879734632504628116%22%2C%22access_hash%22%3A%221980799941692826521%22%2C%22file_reference%22%3A%5B2%2C101%2C208%2C245%2C35%2C0%2C0%2C8%2C201%2C102%2C55%2C182%2C33%2C138%2C235%2C164%2C110%2C39%2C191%2C9%2C97%2C24%2C255%2C60%2C135%2C210%2C92%2C165%2C34%5D%7D%2C%22size%22%3A33441800%2C%22mimeType%22%3A%22video%2Fmp4%22%7D
But script suddenly stops on this line:

if (![200, 206].includes(res.status)) {
                  console.log(res.headers);
                    throw new Error("Non 200/206 response was received: " + res.status);
                }
@Neet-Nestor
Copy link
Owner

This is a known issue that sometimes the Telegram server will send 404 back. The script here correctly detects the issue and prevents further actions. This issue has been reported by many users with unclear root reason.

This issues happend to me too but somehow it disappeared a while later. Could you try relogin Telegram web, using Incognito mode, or switch to a different browser?

@I-Kovalov
Copy link

Hi, did anyone find the solution? I don't have problems with photo and circle videos, but with default video I can't download.
It's really strange error cause when I open URL of video in address I can easily download it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants