-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Download private video by passing list of cookies, but got 401 #781
Comments
Is this still reproducible with the latest version? If I had to guess, there might be an issue with (de-)serialization of cookies when sending them to your backend. However, if you can fetch the private videos in a playlist, it's unlikely for that to be the issue. You can also try fetching and downloading just one video and see if it changes anything. |
Hi @Tyrrrz thank you for reply. I will try it again. |
The problem exists in version 6.4.3. My code:
I get an error in the line
Screenshot of the error: |
Version
6.3.13
Platform
.NET 8.0 / Window 11
Steps to reproduce
Step 1
I use WPF for get all the cookie then pass it to my dotnet 8.0 API.
Step 2
var youtubeClient2 = new YoutubeClient(cookies);
Step 2
An unhandled exception has occurred while executing the request. System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
Details
An unhandled exception has occurred while executing the request. System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
.Thank you so much for check and help this out.🙏🙏
Checklist
The text was updated successfully, but these errors were encountered: