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

Can not download video, 403 #76

Open
retif opened this issue Nov 16, 2024 · 1 comment
Open

Can not download video, 403 #76

retif opened this issue Nov 16, 2024 · 1 comment
Labels
youtube-api-changed YouTube changed thier API and rustube needs to adjust to it

Comments

@retif
Copy link

retif commented Nov 16, 2024

Summary

Can not download video, 403

Video IDs

2pH4aIxPnSg

Version

rustube-cli 0.6.0

Log output or error

log
ERROR [rustube::stream:236]: failed to download 2pH4aIxPnSg: Request(reqwest::Error { kind: Status(403), url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("rr5---sn-bpb5oxu-3c2d.googlevideo.com")), port: None, path: "/videoplayback", query: Some("expire=1731783669&ei=lZc4Z8yuDLCOi9oPn6CBIA&ip=195.211.136.101&id=o-ADSgY_wU9caJYhOm2GsZQRWsrzFld6QYHd5x6Ms_xUP6&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1731762069%2C&mh=RH&mm=31%2C29&mn=sn-bpb5oxu-3c2d%2Csn-3c27sn7r&ms=au%2Crdu&mv=m&mvi=5&pcm2cms=yes&pl=24&rms=au%2Cau&pcm2=yes&initcwndbps=1712500&bui=AQn3pFRkFhMTVOCmwKKLEMOUta9nxaN5rwuB9utg3fsX-SVCQAJvHogyLP7RArxDC2eVXnrWaGrdlm6a&spc=qtApASEzFz4NviOONBn3HpN5WYV_5Nn0N5G8mIG1cRSMiLmPNItstkR6FxBCAus&vprv=1&svpuc=1&mime=video%2Fmp4&ns=EOnhfaZ9Uauar7HAaCftLO0Q&rqh=1&gir=yes&clen=37114455&ratebypass=yes&dur=790.662&lmt=1731753973085148&mt=1731761828&fvip=3&fexp=51299154%2C51312688%2C51326932%2C51347746&c=WEB&sefc=1&txp=3309224&n=C3ZvR3oXgw-IpUM&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIgAfYkDiYQ-3xThLbJDX_L5HvFKaGcz7RqameSqPn2CK8CIQCu0d3X9Ic-fOxd_Rn7xQoZUfe5oOnu99WkmeM2vhbvtw%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIhALj6EFeQ6W4FTjmS8_BhwXTqssNBmkSME2g6rf7Vtf9qAiAX_X_BZjVd8_xj6tlFf2IdT_yteEM8TBGKMldR4URLvQ%3D%3D"), fragment: None } })
ERROR [rustube:30]: HTTP status client error (403 Forbidden) for url (https://rr5---sn-bpb5oxu-3c2d.googlevideo.com/videoplayback?expire=1731783669&ei=lZc4Z8yuDLCOi9oPn6CBIA&ip=195.211.136.101&id=o-ADSgY_wU9caJYhOm2GsZQRWsrzFld6QYHd5x6Ms_xUP6&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1731762069%2C&mh=RH&mm=31%2C29&mn=sn-bpb5oxu-3c2d%2Csn-3c27sn7r&ms=au%2Crdu&mv=m&mvi=5&pcm2cms=yes&pl=24&rms=au%2Cau&pcm2=yes&initcwndbps=1712500&bui=AQn3pFRkFhMTVOCmwKKLEMOUta9nxaN5rwuB9utg3fsX-SVCQAJvHogyLP7RArxDC2eVXnrWaGrdlm6a&spc=qtApASEzFz4NviOONBn3HpN5WYV_5Nn0N5G8mIG1cRSMiLmPNItstkR6FxBCAus&vprv=1&svpuc=1&mime=video%2Fmp4&ns=EOnhfaZ9Uauar7HAaCftLO0Q&rqh=1&gir=yes&clen=37114455&ratebypass=yes&dur=790.662&lmt=1731753973085148&mt=1731761828&fvip=3&fexp=51299154%2C51312688%2C51326932%2C51347746&c=WEB&sefc=1&txp=3309224&n=C3ZvR3oXgw-IpUM&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIgAfYkDiYQ-3xThLbJDX_L5HvFKaGcz7RqameSqPn2CK8CIQCu0d3X9Ic-fOxd_Rn7xQoZUfe5oOnu99WkmeM2vhbvtw%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIhALj6EFeQ6W4FTjmS8_BhwXTqssNBmkSME2g6rf7Vtf9qAiAX_X_BZjVd8_xj6tlFf2IdT_yteEM8TBGKMldR4URLvQ%3D%3D)

If the error is caused by a change to the YouTube API, it would be great if you could report this. Common indicators of an API change are:
1. repeated HTTP 403 status
2. unexpected response errors
3. deserialization errors
There's a predefined issue template in our repo: https://github.com/DzenanJupic/rustube/issues/new?assignees=&labels=youtube-api-changed&template=youtube_api_changed.yml
Error: HTTP status client error (403 Forbidden) for url (https://rr5---sn-bpb5oxu-3c2d.googlevideo.com/videoplayback?expire=1731783669&ei=lZc4Z8yuDLCOi9oPn6CBIA&ip=195.211.136.101&id=o-ADSgY_wU9caJYhOm2GsZQRWsrzFld6QYHd5x6Ms_xUP6&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1731762069%2C&mh=RH&mm=31%2C29&mn=sn-bpb5oxu-3c2d%2Csn-3c27sn7r&ms=au%2Crdu&mv=m&mvi=5&pcm2cms=yes&pl=24&rms=au%2Cau&pcm2=yes&initcwndbps=1712500&bui=AQn3pFRkFhMTVOCmwKKLEMOUta9nxaN5rwuB9utg3fsX-SVCQAJvHogyLP7RArxDC2eVXnrWaGrdlm6a&spc=qtApASEzFz4NviOONBn3HpN5WYV_5Nn0N5G8mIG1cRSMiLmPNItstkR6FxBCAus&vprv=1&svpuc=1&mime=video%2Fmp4&ns=EOnhfaZ9Uauar7HAaCftLO0Q&rqh=1&gir=yes&clen=37114455&ratebypass=yes&dur=790.662&lmt=1731753973085148&mt=1731761828&fvip=3&fexp=51299154%2C51312688%2C51326932%2C51347746&c=WEB&sefc=1&txp=3309224&n=C3ZvR3oXgw-IpUM&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIgAfYkDiYQ-3xThLbJDX_L5HvFKaGcz7RqameSqPn2CK8CIQCu0d3X9Ic-fOxd_Rn7xQoZUfe5oOnu99WkmeM2vhbvtw%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIhALj6EFeQ6W4FTjmS8_BhwXTqssNBmkSME2g6rf7Vtf9qAiAX_X_BZjVd8_xj6tlFf2IdT_yteEM8TBGKMldR4URLvQ%3D%3D)

Additional notes or ideas

No response

@retif retif added the youtube-api-changed YouTube changed thier API and rustube needs to adjust to it label Nov 16, 2024
@woshishabii
Copy link

It seems that Youtube requires a cookie to download video now, which isn't implemented by this repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
youtube-api-changed YouTube changed thier API and rustube needs to adjust to it
Projects
None yet
Development

No branches or pull requests

2 participants