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

400 Bad request since 26/11/2024 #844

Open
Skinz3 opened this issue Nov 26, 2024 · 6 comments
Open

400 Bad request since 26/11/2024 #844

Skinz3 opened this issue Nov 26, 2024 · 6 comments
Labels

Comments

@Skinz3
Copy link

Skinz3 commented Nov 26, 2024

Version

6.4.4

Platform

.NET 7 / Windows server

Steps to reproduce

System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 400 (Bad Request).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at YoutubeExplode.Videos.VideoController.GetPlayerResponseAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/VideoController.cs:line 97

Hello !
This
Just appears since today. I was using youtube explode since a few months without any issue (im passing session cookie)

Its working on my local computer. But i got this error on my server since today.

До біса Росія btw

Details

Error while getting manifest

My problem appears here :
var streamManifest = await youtube.Videos.Streams.GetManifestAsync(video.Id); var streamInfo = streamManifest .GetAudioOnlyStreams() .MaxBy(x => x.Bitrate);

@Skinz3 Skinz3 added the bug label Nov 26, 2024
@Abbossbek
Copy link

I have this issue too.

@Abbossbek
Copy link

Abbossbek commented Dec 6, 2024

Hello, @Tyrrrz

I appreciate the hard work and dedication you put into maintaining this project. I wanted to bring to your attention a critical issue that has been affecting the functionality of the library since 26/11/2024. The error message "Response status code does not indicate success: 400 (Bad Request)" is causing significant disruptions, particularly on server environments.

Given the widespread impact and the number of users affected, I kindly request that this issue be prioritized for a prompt resolution. Your timely intervention would greatly benefit the community relying on this library.

Thank you for your understanding and support.

@Ryuchetval
Copy link

Ryuchetval commented Dec 10, 2024

I am facing the same issue on a .net 8 / debian server setup with latest version of YouTube Explode 6.5.0 (was happening also on 6.4.3). It used to work in the past but it's probably just another attempt of youtube to block the downloads.
With cookies, I get back this error:

System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at YoutubeExplode.Videos.VideoController.GetPlayerResponseAsync(VideoId videoId, CancellationToken cancellationToken) in //YoutubeExplode/Videos/VideoController.cs:line 97
at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, CancellationToken cancellationToken) in /
/YoutubeExplode/Videos/Streams/StreamClient.cs:line 258
at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 292

without cookies I get back this error:

YoutubeExplode.Exceptions.VideoUnavailableException: Video 'v_JMkscQuGY' is not available.
at YoutubeExplode.Videos.VideoController.GetVideoWatchPageAsync(VideoId videoId, CancellationToken cancellationToken) in //YoutubeExplode/Videos/VideoController.cs:line 39
at YoutubeExplode.Videos.VideoClient.GetAsync(VideoId videoId, CancellationToken cancellationToken) in /
/YoutubeExplode/Videos/VideoClient.cs:line 37

From local machine it works properly but not on the server

@Tyrrrz
Copy link
Owner

Tyrrrz commented Dec 12, 2024

Do you see this on specific videos? I can't reproduce the issue

@Abbossbek
Copy link

Do you see this on specific videos? I can't reproduce the issue

Attempt to download the video using a VPN set to Germany; an error message should appear.

@Abbossbek
Copy link

image
All these issues in YoutubeDownloader are related to this. If the error in the library is fixed, these will also be automatically resolved.

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

No branches or pull requests

4 participants