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

Response status code does not indicate success: 400 (Bad Request) #586

Closed
6 tasks done
lolminerxmrig01 opened this issue Jan 12, 2025 · 7 comments
Closed
6 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@lolminerxmrig01
Copy link

Version

10.0

Platform

win 11

Steps to reproduce

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 270
at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 304
at YoutubeDownloader.Core.Downloading.VideoDownloader.GetDownloadOptionsAsync(VideoId videoId, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 26
at YoutubeDownloader.Core.Downloading.VideoDownloader.GetBestDownloadOptionAsync(VideoId videoId, VideoDownloadPreference preference, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 37
at YoutubeDownloader.ViewModels.Components.DashboardViewModel.EnqueueDownload(DownloadViewModel download, Int32 position)

Details

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 270
at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 304
at YoutubeDownloader.Core.Downloading.VideoDownloader.GetDownloadOptionsAsync(VideoId videoId, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 26
at YoutubeDownloader.Core.Downloading.VideoDownloader.GetBestDownloadOptionAsync(VideoId videoId, VideoDownloadPreference preference, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 37
at YoutubeDownloader.ViewModels.Components.DashboardViewModel.EnqueueDownload(DownloadViewModel download, Int32 position)

Checklist

  • I have looked through existing issues to make sure that this bug has not been reported before
  • I have provided a descriptive title for this issue
  • I have made sure that this bug is reproducible on the latest version of the application
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
  • I have not read any of the above and just checked all the boxes to submit the issue
@lolminerxmrig01 lolminerxmrig01 added the bug Something isn't working label Jan 12, 2025
@viaujoc
Copy link

viaujoc commented Jan 13, 2025

I have the same issue. Thank you for reporting it.

@FabLeKebab
Copy link

Me too. Thank you for reporting it.

@thre3eye
Copy link

+1

1 similar comment
@smyhlin
Copy link

smyhlin commented Jan 15, 2025

+1

@crolyss
Copy link

crolyss commented Jan 16, 2025

Version

10.0

Platform

win 11

Steps to reproduce

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 270 at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 304 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetDownloadOptionsAsync(VideoId videoId, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 26 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetBestDownloadOptionAsync(VideoId videoId, VideoDownloadPreference preference, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 37 at YoutubeDownloader.ViewModels.Components.DashboardViewModel.EnqueueDownload(DownloadViewModel download, Int32 position)

Details

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 270 at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 304 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetDownloadOptionsAsync(VideoId videoId, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 26 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetBestDownloadOptionAsync(VideoId videoId, VideoDownloadPreference preference, Boolean includeLanguageSpecificAudioStreams, CancellationToken cancellationToken) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader.Core\Downloading\VideoDownloader.cs:line 37 at YoutubeDownloader.ViewModels.Components.DashboardViewModel.EnqueueDownload(DownloadViewModel download, Int32 position)

Checklist

* [x]  I have looked through existing issues to make sure that this bug has not been reported before[x]  I have provided a descriptive title for this issue[x]  I have made sure that this bug is reproducible on the latest version of the application[x]  I have provided all the information needed to reproduce this bug as efficiently as possible[x]  I have sponsored this project[x]  I have not read any of the above and just checked all the boxes to submit the issue

Please try:

#582 (comment)

@thre3eye
Copy link

thre3eye commented Jan 16, 2025

Please try:

#582 (comment)

This seems to be working partially. I also have to sign out or everything fails. I am trying to download a playlist. some files still fail with "Video 'p6JPHoGOGjI' is unplayable. Reason: 'Please sign in'." I'll see if these work after signing in again once the rest is done.
Thanks for the workaround!

@Tyrrrz
Copy link
Owner

Tyrrrz commented Jan 19, 2025

Duplicate of #550

@Tyrrrz Tyrrrz marked this as a duplicate of #550 Jan 19, 2025
@Tyrrrz Tyrrrz closed this as completed Jan 19, 2025
@Tyrrrz Tyrrrz added duplicate This issue or pull request already exists and removed bug Something isn't working labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants