HTTP 404 error when getting video using GetVideoAsync()
See original GitHub issueEnter Youtube video ID or URL: https://www.youtube.com/watch?v=cGbP2y7Obas Loading…
Unhandled Exception: System.Net.Http.HttpRequestException: Answer status codes do not indicate that the request was successful: 404 (Not Found). by System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () by YoutubeExplode.Services.Extensions.d__0.MoveNext () --- End of track tracking from previous location where exception was taken --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () by System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task) by System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult () at YoutubeExplode.YoutubeClient.d__34.MoveNext () --- End of track tracking from previous location where exception was taken --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () by System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task) by System.Runtime.CompilerServices.TaskAwaiter1.GetResult () by DemoConsole.Program.d__2.MoveNext () --- End of track tracking from previous location where exception was taken --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () by System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task) by System.Runtime.CompilerServices.TaskAwaiter.GetResult () by DemoConsole.Program.Main (String [] args)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:56 (29 by maintainers)
Here’s a package version that doesn’t query
get_video_metadata
for those that need a solution ASAP. Properly fixing this may take some time.https://www.nuget.org/packages/YoutubeExplode/3.4.0-workaround404
Good luck with the fix, Tyrrrz. I’ll see if I can look into some solutions as well. Using the workaround for now.