Closed Blurbss closed 10 months ago
Http-Requests are only sent during initial connect (to scrape the TikTokLive-Page for the required data (such as RoomId)). If these are timing out, it sounds like you're unable to access the actual TikTokLiveStream-Page for the user?
I receive same issue on all users and projects:
WebException: The operation has timed out.
System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func
1[TResult] aborted, System.Threading.CancellationTokenSource cts) (at 1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func
2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task
1[TResult] promise, System.Boolean requiresSynchronization) (at 2[TKey,TValue] parameters) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:172) TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetRequest (System.String url, System.Collections.Generic.Dictionary
2[TKey,TValue] parameters, System.Boolean signURL) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:126)
TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetDeserializedMessage (System.String path, System.Collections.Generic.Dictionary2[TKey,TValue] parameters, System.Boolean signURL) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:64) TikTokLiveSharp.Client.TikTokBaseClient.FetchClientData () (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:600) TikTokLiveSharp.Client.TikTokBaseClient.Connect (System.Action
1[T] onConnectException) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:418)
TikTokLiveSharp.Client.TikTokLiveClient.Connect (System.Action1[T] onConnectException) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokLiveClient.cs:266) TikTokLiveSharp.Client.TikTokBaseClient.Start (System.Nullable
1[T] cancellationToken, System.Action1[T] onConnectException, System.Boolean retryConnection) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:317) UnityEngine.Debug:LogException(Exception, Object) TikTokLiveSharp.Client.<Start>d__42:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:367) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.1:SetException(Exception) TikTokLiveSharp.Client.<FetchClientData>d__49:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:603) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.HTTP.1:SetException(Exception) TikTokLiveSharp.Client.HTTP.<GetSignedUrl>d__12:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:185) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.HTTP.
TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetSignedUrl (System.String url
Signing server is down currently. It's maintained by the owner of the Python-lib, so there's nothing I can do about that.
Can you provide this lib repository to push the owner?
https://github.com/isaackogan/TikTokLive Not currently online on Discord, so I'm not expecting an immediate response.
Same issue occurs
The way I solved this was going directly into the library code and brute-force increasing the timeout limit. It took on average like a minute or two to connect for me, so it was giving up way too early. Hope that helps.
The way I solved this was going directly into the library code and brute-force increasing the timeout limit. It took on average like a minute or two to connect for me, so it was giving up way too early. Hope that helps.
Could you provide the solution please?
The way I solved this was going directly into the library code and brute-force increasing the timeout limit. It took on average like a minute or two to connect for me, so it was giving up way too early. Hope that helps.
Could you provide the solution please?
In Constants.cs
Doesn't work, then I receive new error:
HttpRequestException: Request was unsuccessful [502]
TikTokLiveSharp.Client.HTTP.TikTokHttpRequest.GetContent () (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHttpRequest.cs:186)
TikTokLiveSharp.Client.HTTP.TikTokHttpRequest.Get () (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHttpRequest.cs:140)
TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetSignedUrl (System.String url, System.Collections.Generic.Dictionary2[TKey,TValue] parameters) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:172) TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetRequest (System.String url, System.Collections.Generic.Dictionary
2[TKey,TValue] parameters, System.Boolean signURL) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:126)
TikTokLiveSharp.Client.HTTP.TikTokHTTPClient.GetDeserializedMessage (System.String path, System.Collections.Generic.Dictionary2[TKey,TValue] parameters, System.Boolean signURL) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:64) TikTokLiveSharp.Client.TikTokBaseClient.FetchClientData () (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:600) TikTokLiveSharp.Client.TikTokBaseClient.Connect (System.Action
1[T] onConnectException) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:418)
TikTokLiveSharp.Client.TikTokLiveClient.Connect (System.Action1[T] onConnectException) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokLiveClient.cs:266) TikTokLiveSharp.Client.TikTokBaseClient.Start (System.Nullable
1[T] cancellationToken, System.Action1[T] onConnectException, System.Boolean retryConnection) (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:317) UnityEngine.Debug:LogException(Exception, Object) TikTokLiveSharp.Client.<Start>d__42:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:367) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.1:SetException(Exception) TikTokLiveSharp.Client.<FetchClientData>d__49:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/TikTokBaseClient.cs:603) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.HTTP.1:SetException(Exception) TikTokLiveSharp.Client.HTTP.<GetSignedUrl>d__12:MoveNext() (at Library/PackageCache/dev.vanhoof.tiktokliveunity@235e10ef40/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:185) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:SetException(Exception)
TikTokLiveSharp.Client.HTTP.
Should I try some kind of retry mechanism?
Setup the example project in unity and am trying to connect to multiple streams and getting timed out every time. Any ideas?