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

500 error when calling GetManifestAsync #782

Closed
4 of 5 tasks
krispy52 opened this issue Feb 29, 2024 · 5 comments
Closed
4 of 5 tasks

500 error when calling GetManifestAsync #782

krispy52 opened this issue Feb 29, 2024 · 5 comments

Comments

@krispy52
Copy link

Version

6.3.13

Platform

.NET 8.0/Windows 11

Steps to reproduce

var youtube = new YoutubeClient();
var streamManifest = await youtube.Videos.Streams.GetManifestAsync($"https://www.youtube.com/watch?v=IA3WxTTPXqQ");

Details

Expected Behavior: Returns valid StreamManifest
Actual Behavior: HttpRequestException thrown

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 package
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
@krispy52 krispy52 added the bug label Feb 29, 2024
@Tyrrrz
Copy link
Owner

Tyrrrz commented Feb 29, 2024

500 errors can happen sometimes and they're indicative of transient failures on YouTube's side

@Tyrrrz Tyrrrz added invalid and removed bug labels Feb 29, 2024
@Tyrrrz Tyrrrz closed this as completed Feb 29, 2024
@Tyrrrz Tyrrrz changed the title 500 Error when calling GetManifestAsync 500 error when calling GetManifestAsync Feb 29, 2024
@krispy52
Copy link
Author

@Tyrrrz This is not a transient failure, I am able to reproduce it. The issue might be specific to long duration videos, YouTube video id: IA3WxTTPXqQ is 37hrs. I was able to get manifest for videos up to 30hrs in the past without any issues.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Mar 1, 2024

Indeed, I can reproduce this too.

@RamiroGarrido
Copy link

RamiroGarrido commented Jun 3, 2024

I'm having the same issue with any URL...help please. Here's the complete stack trace I receive on the catch in case it helps:

at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at YoutubeExplode.Videos.VideoController.GetPlayerResponseAsync(VideoId videoId, CancellationToken cancellationToken) in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\YoutubeExplode\Videos\VideoController.cs:line 76
at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, CancellationToken cancellationToken)+MoveNext() in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\YoutubeExplode\Videos\Streams\StreamClient.cs:line 175
at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
at YoutubeExplode.Utils.Extensions.AsyncCollectionExtensions.ToListAsync[T](IAsyncEnumerable1 source) in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\YoutubeExplode\Utils\Extensions\AsyncCollectionExtensions.cs:line 48 at YoutubeExplode.Utils.Extensions.AsyncCollectionExtensions.ToListAsync[T](IAsyncEnumerable1 source) in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\YoutubeExplode\Utils\Extensions\AsyncCollectionExtensions.cs:line 48
at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\YoutubeExplode\Videos\Streams\StreamClient.cs:line 229
at MediaConverterAPI.Repositories.Implementations.YoutubeRepository.convertURL(ConversionRequest requestModel) in C:\Users\Ramiro\VisualStudioProjects\MediaConverterRGM\MediaConverterAPI\Repositories\Implementations\YoutubeRepository.cs:line 61

@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 27, 2024

This seems to have been fixed, either by #818 or by YouTube themselves (seeing as 500 error would indicate their fault).

image

@Tyrrrz Tyrrrz closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants