frankvHoof93 / TikTokLiveSharp

Port of TikTok live library for C#
https://vanhoof.dev
Other
140 stars 28 forks source link

InvalidOperationException during TikTokBaseClient.Start -> UseCookies must be true #1

Closed frankvHoof93 closed 1 year ago

frankvHoof93 commented 1 year ago

FailedFetchRoomInfoException: Failed to fetch room id from WebCast, see stacktrace for more info. and InvalidOperationException: The UseCookies property must be set to true before this property can be used.

in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() in TikTokLiveSharp.Client.TikTokBaseClient.d__40.MoveNext() в C:\Users\dalle\Desktop\TikTokLiveSharp-main\TikTokLiveSharp\Client\TikTokBaseClient.cs:line 247

frankvHoof93 commented 1 year ago

ToDo: This seems to be related to the UseCookies-Param in HTTPClient. Make this value settable (currently hardcoded to false) in the next version.

Another possibility could be that the CookieContainer (line below where UseCookies is set) must be NULL on specific versions of .NET if UseCookies is false

frankvHoof93 commented 1 year ago

Resolved in 0.9.1. CookieContainer is now no longer set. The Set-accessor seems to crash in .NET Framework if the UseCookies-Value is set to False.