Tyrrrz / YoutubeExplode

Abstraction layer over YouTube's internal API
MIT License
2.98k stars 497 forks source link

Exception when use Channels.GetUploadsAsync #520

Closed ngochoaitn closed 3 years ago

ngochoaitn commented 3 years ago

Function: Channels.GetUploadsAsync Channel Id: UC8WHyfTblB1QhzlJEZawLQw Exception:

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

Thank.

devnulli commented 3 years ago

hi.

the complete exception is:

at YoutubeExplode.ReverseEngineering.Responses.WatchPage.<>c__DisplayClass11_0.<<GetAsync>b__0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at YoutubeExplode.Internal.Retry.<WrapAsync>d__1`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at YoutubeExplode.Internal.Retry.<WrapAsync>d__1`1.MoveNext()
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`1.GetResult()
at YoutubeExplode.ReverseEngineering.Responses.WatchPage.<GetAsync>d__11.MoveNext()
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`1.GetResult()
at YoutubeExplode.Videos.VideoClient.<GetVideoFromWatchPageAsync>d__9.MoveNext()
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`1.GetResult()
at YoutubeExplode.Videos.VideoClient.<GetAsync>d__10.MoveNext()

thx for keeping this library up to the site

Sekoree commented 3 years ago

If you're using version 5, switch to version 6 preview 2, Youtube has a new cookie consent page that broke a lot

devnulli commented 3 years ago

switching to 6.0.0-alpha2 did work for me

Sekoree commented 3 years ago

I forgot to mention, if you really need to use version 5 you can give the YoutubeClient a HttpClient that has following Cookie set: Name: CONSENT Value: YES+cb Path: / Domain: .youtube.com

Tyrrrz commented 3 years ago

Duplicate of #501