Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Your IP or country might be blocked by TikTok #89

Open
nicatjava opened this issue Jul 10, 2024 · 13 comments
Open

[BUG] Your IP or country might be blocked by TikTok #89

nicatjava opened this issue Jul 10, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@nicatjava
Copy link

**FailedFetchRoomInfoException: Your IP or country might be blocked by TikTok.
UnityEngine.Debug:LogException(Exception, Object)
TikTokLiveSharp.Client.d__52:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/TikTokBaseClient.cs:646)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(String) TikTokLiveSharp.Client.HTTP.<GetLivestreamPage>d__8:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:107) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpContent)
TikTokLiveSharp.Client.HTTP.d__13:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/HTTP/TikTokHTTPClient.cs:221)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpContent) TikTokLiveSharp.Client.HTTP.<Get>d__24:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/HTTP/TikTokHttpRequest.cs:186) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpContent)
TikTokLiveSharp.Client.HTTP.d__29:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/HTTP/TikTokHttpRequest.cs:268)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(HttpResponseMessage)
TikTokLiveSharp.Client.HTTP.d__28:MoveNext() (at ./Library/PackageCache/dev.vanhoof.tiktokliveunity@18ae546fb8/TikTokLiveSharp/Client/HTTP/TikTokHttpRequest.cs:242)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

**
In our country Tiktok not blocked. Also I can open live from my account on phone.
What is the problem? Till Yesterday code will work perfectly, and from now it not works...
Can anyone has information about this?

@nicatjava nicatjava added the bug Something isn't working label Jul 10, 2024
@nicatjava
Copy link
Author

Also with TiktokLiveJava works perfectly

@hideki1217
Copy link

hideki1217 commented Jul 10, 2024

me too. When I used it from Japan, same exception was thrown.
but I can watch TikTok Live now. Is there some problems in this library? What is it ??

@Rambalac
Copy link

Rambalac commented Jul 10, 2024

There is a mistake in regex in file TikTokBaseClient.cs:628

Match second = Regex.Match(html, "\"roomId\":\"([0 - 9] *)\"");

Must be

Match second = Regex.Match(html, "\"roomId\":\"([0-9]+)\"");

@nicatjava
Copy link
Author

There is a mistake in regex in file TikTokBaseClient.cs:628

Match second = Regex.Match(html, "\"roomId\":\"([0 - 9] *)\"");

Must be

Match second = Regex.Match(html, "\"roomId\":\"([0-9]+)\"");

Reply:
no bro, it is not works for me :(

@Rambalac
Copy link

Rambalac commented Jul 10, 2024

Line 320 too.
It works for me

@nicatjava
Copy link
Author

Friends, Still i have same problem, PLease somebody help me! All my followers wait to play my game :'(

@jirohn
Copy link

jirohn commented Jul 10, 2024

i have the same problem, i change the two lines in TikTokBaseClient but still not working

@nicatjava
Copy link
Author

Still Nobody answer why we get this error and our Followers waiting our game when it start again...

@hideki1217
Copy link

It looks like this issue has been fixed in a pull request. Please adopt the pull request and let us know if it works!

@nicatjava
Copy link
Author

OMG! It works! Thanks Rambalac, thanks hideki1217!

@hideki1217
Copy link

I'm glad you are cured. Since you tried this pull request and reported your results, I will use this pull request as well! Thanks for the report!

@Creat-coin
Copy link

FailedFetchRoomInfoException : Could not find RoomId on Webpage. Your IP or country might be blocked by TikTok.

@karam-ae
Copy link

Did you find a solution to this problem that it does not connect to Live +18?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants