mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-22 22:39:42 -05:00
Self-hosted Cobalt returns files with 0 bytes from YouTube #940
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chakalaka11 on GitHub (Aug 26, 2025).
problem description
Title.
Any file that I'm trying to download from tunnel returns with 0 bytes for some reason
Even in non-docker instance that I've launched this issue persists
Is there any verbose logs that I could check or configuration that I've missed?
your instance configuration
@Renaud11232 commented on GitHub (Sep 6, 2025):
I'm currently facing the same problem where sometimes, cobalt returns 0byte-length responses.
However this does not happen every time :
For instance while writing this comment, the following video will result in a 0-byte file :
This returns something like :
Then trying to download the file with :
This will return an HTTP OK 200, but the download file will be empty :
The exact same commands did work ~3 minutes later.
I hope this helps
@wukko commented on GitHub (Sep 6, 2025):
your server's ip address got temporarily blocked by googlevideo, you'll have to either wait or use a fresh ip address to fix this. cobalt's source code doesn't have anything to do with this, unfortunately
@Renaud11232 commented on GitHub (Sep 6, 2025):
Thank you for the clarification.
As a suggestion, would it be possible to add an error code / message for such cases ?
Similarly to age restricted videos, login required...
Thanks
@wukko commented on GitHub (Sep 6, 2025):
it can't be detected before starting the file stream, but cobalt's tunnels do return HTTP codes to indicate errors