Skip to content

InitialFetchError: Failed to retrieve the initial room data. just facing this issue today. #261

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

Open
bakteribaik opened this issue Mar 25, 2025 · 13 comments

Comments

@bakteribaik
Copy link

everytime i want to connect with different username/tiktok id, the program return InitialFetchError: Failed to retrieve the initial room data.

@danielhe4rt
Copy link

Same here.

@bakteribaik
Copy link
Author

Okay, everything seems fine now. I'm not sure what was broken—whether it was on my side or the library's side. All I did was keep reconnecting whenever there was an error saying 'Can't get initial room data,' and suddenly, it just connected successfully

@mdaniel95
Copy link

Hello, I keep getting this error as well

@bakteribaik
Copy link
Author

yeaa the error just come back

@MEN3F
Copy link

MEN3F commented Mar 25, 2025

same

@vuongdev68
Copy link

Same :(( no one can fix it

@danielhe4rt
Copy link

Seems to be a problem at the TikTok protocol... Maybe they updated something there.

@Vixenlicious
Copy link

this is due to the way TikTok handles thier HTML for live, they changed the initial structure format so you must create a custom parser by dumping the source html of a live stream then searching for SIGI_STATE as that contains the room info, the data structure and format in Application/JSON

@xllecs
Copy link

xllecs commented Mar 27, 2025

@Vixenlicious thank you for your input. I've managed to manually extract the roomId from SIGI_STATE but it seems the library doesn't have an option to manually pass the id 🤔 am I missing something?

@wfzyx
Copy link

wfzyx commented Mar 27, 2025

you can do it through the connect() method; but even so it still doesn't work apparently;

@bakteribaik
Copy link
Author

bakteribaik commented Mar 29, 2025

I think TikTok has changed its protocol. Now, when you visit TikTok.com and try to view a user's video feed from their profile, you're required to complete a captcha. Since retrieving the room ID relies on extracting data from the HTML, I believe this method is now blocked. Developers zeody will need to either bypass the captcha or find an alternative way to obtain the room ID. But who knows? I'm just a script kiddy. That's just my observation 😅

@Birsan11
Copy link

Sunt curios să văd ce poți face, mas bucura să reușești

@IAMprodigi
Copy link

It's interesting because TikFinity continues to work. So, there has to be a way around it. Unless somehow TikFinity has a sanctioned API, and if that's the case how do the rest of us get that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants