Exception "playlist response is broken" is thrown when searching for videos
See original GitHub issueException thrown:
at “YoutubeClient.Search.GetVideosAsync(“Blue Magic Guess Who”).BufferAsync()”
Message: Playlist response is broken. In most cases, this error indicates that the problem is on YouTube’s side and this is not a bug in the library. To resolve this error, please wait some time and try again. If this issue persists, please report it on the project’s GitHub page.
StackTrace:
bei YoutubeExplode.ReverseEngineering.Responses.PlaylistResponse.Parse(String raw)
bei YoutubeExplode.ReverseEngineering.Responses.PlaylistResponse.<>c__DisplayClass12_0.<<GetSearchResultsAsync>b__0>d.MoveNext()
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei YoutubeExplode.Internal.Retry.<WrapAsync>d__11.MoveNext() bei YoutubeExplode.Internal.Retry.<WrapAsync>d__1
1.MoveNext()
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei YoutubeExplode.ReverseEngineering.Responses.PlaylistResponse.<GetSearchResultsAsync>d__12.MoveNext()
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei YoutubeExplode.Search.SearchClient.<GetVideosAsync>d__2.MoveNext()
bei System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore1.GetResult(Int16 token) bei YoutubeExplode.Search.SearchClient.<GetVideosAsync>d__2.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token) bei YoutubeExplode.Internal.Extensions.AsyncEnumerableExtensions.<ToListAsync>d__1
1.MoveNext()
bei YoutubeExplode.Internal.Extensions.AsyncEnumerableExtensions.<ToListAsync>d__11.MoveNext() bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei YoutubeExplode.AccessibilityExtensions.<BufferAsync>d__0.MoveNext() bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei System.Threading.Tasks.ValueTask
1.get_Result()
bei System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
I just found out that the url is not changed, but now these headers:
are required to make the search work, otherwise it will always return an error 404. (However it still needs some tries to go through)
Thanx a lot!!! Works like a charme. Tested with 57 Videos.