question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception "playlist response is broken" is thrown when searching for videos

See original GitHub issue

Exception 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__11.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__11.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.ValueTask1.get_Result() bei System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Hexer10commented, Sep 11, 2020

Looks like ‘search’ is still shown as an available list type on the iframe reference page. image

I wonder if the URL changed?

I just found out that the url is not changed, but now these headers:

    'x-youtube-client-name': '56',
    'x-youtube-client-version': '20200911',

are required to make the search work, otherwise it will always return an error 404. (However it still needs some tries to go through)

0reactions
ThomasMasuthcommented, Sep 12, 2020

Thanx a lot!!! Works like a charme. Tested with 57 Videos.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playlist response is broken (search & normal playlists) #501
Exceptions.TransientFailureException : Playlist response is broken. In most cases, this error indicates that the problem is on YouTube's side ...
Read more >
YouTube Data API - Errors
This error indicates that the user has an unlinked Google Account, which means that the user has a Google Account but does not...
Read more >
Troubleshooting YouTube Music
Check out common issues with YouTube Music and troubleshooting steps to resolve them. As a first step that resolves many common problems, close...
Read more >
How to Fix the HTTP 405 Method Not Allowed Error
It's an HTTP response status code that indicates that the request method is known by the server but is not supported by the...
Read more >
What is “HTTP 500 Internal Server Error” and How to Fix It?
The “HTTP 500 Internal Server Error” is very common and it can be caused by various problems. Learn more about the error and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found