Mithronn / rusty_ytdl

A Rust library for Youtube video searcher and downloader
https://docs.rs/rusty_ytdl
MIT License
96 stars 20 forks source link

Error 403 forbidden on stream.chunk() #44

Open MalpenZibo opened 1 week ago

MalpenZibo commented 1 week ago

I still get error 403 with every video that I have tried. I'm already using the latest commit on the main branch.

I see that this commit https://github.com/Mithronn/rusty_ytdl/commit/d4798aaab5d8079d8e0fd2a354325d65685a712f should have resolved the issue but in my case, the error persist.

clytras commented 1 week ago

@MalpenZibo I've had a similar issue, but it was due to reqwest custom features and missing cookies feature. There must be an issue with reqwest and its' features, but I can't dig more on it now.

nick42d commented 1 week ago

Experiencing the same issue here. https://github.com/ytdl-org/youtube-dl/issues/32905 seems to shed some light on things.

@MalpenZibo I've had a similar issue, but it was due to reqwest custom features and missing cookies feature. There must be an issue with reqwest and its' features, but I can't dig more on it now.

Are you providing cookies to the client with that feature? If so, where do you get them from?

clytras commented 6 days ago

Experiencing the same issue here. ytdl-org/youtube-dl#32905 seems to shed some light on things.

@MalpenZibo I've had a similar issue, but it was due to reqwest custom features and missing cookies feature. There must be an issue with reqwest and its' features, but I can't dig more on it now.

Are you providing cookies to the client with that feature? If so, where do you get them from?

No I don't. I assume that this uses default cookies internally and for it to work there must be a cookie jar to store default cookies. My issue was that when I was having reqwest on my app, it was not loading the cookies reqwest feature and for that reason I was getting 403 errors after downloading some chunks.