HttpRequestException: 'Response status code does not indicate success: 403 (Forbidden).'
See original GitHub issueGetting a 403 error on many videos when attempting to download any of the media streams. For example: https://www.youtube.com/watch?v=QkF3oxziUI4
System.Net.Http.HttpRequestException HResult=0x80131500 Message=Response status code does not indicate success: 403 (Forbidden). Source=System.Net.Http StackTrace: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at YoutubeExplode.Internal.HttpClientEx.<GetStreamAsync>d__4.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode\Internal\HttpClientEx.cs:line 60 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at YoutubeExplode.Internal.SegmentedHttpStream.<ReadAsync>d__19.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode\Internal\SegmentedHttpStream.cs:line 65 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at YoutubeExplode.Internal.Extensions.<CopyToAsync>d__18.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode\Internal\Extensions.cs:line 155 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.YoutubeClient.<DownloadMediaStreamAsync>d__14.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode\YoutubeClient.MediaStream.cs:line 36 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.YoutubeClient.<DownloadMediaStreamAsync>d__15.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode\YoutubeClient.MediaStream.cs:line 46 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at YoutubeExplode.DemoWpf.ViewModels.MainViewModel.<DownloadMediaStream>d__49.MoveNext() in \repos\YoutubeExplode-master\YoutubeExplode.DemoWpf\ViewModels\MainViewModel.cs:line 196
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Pushed a new version
I hope it ’s not Google ’s new policy