zerodytrash / TikTok-Live-Connector

Node.js library to receive live stream events (comments, gifts, etc.) in realtime from TikTok LIVE.
https://discord.gg/2c6kX6g3Pa
MIT License
1.33k stars 278 forks source link

fetch response problem #66

Closed NWucha closed 2 years ago

NWucha commented 2 years ago

Check please :)

iProGamer commented 2 years ago

same

iProGamer commented 2 years ago

Screenshot_3

iProGamer commented 2 years ago

any idea?

quang1412 commented 2 years ago

same :(

iProGamer commented 2 years ago

sample?

isaackogan commented 2 years ago

Found the cause, implementing the fix. P.S: I have midterms in 2 days and I'm fixing TikTok. Lol.

isaackogan commented 2 years ago

Fixed-

TikTok implemented some sneaky logging which I had to get around. Service should be restored. I'm gonna go study for midterms now.

Enjoy!

Edit: Not true

affluentmind commented 2 years ago

I'm still facing the same problem

isaackogan commented 2 years ago

Problem persists after patches. Works for 5-10 minutes, then signatures become invalid. Being looked into.

iProGamer commented 2 years ago

same

NWucha commented 2 years ago

Problem persists after patches. Works for 5-10 minutes, then signatures become invalid. Being looked into.

True. :(

lucasbaylon commented 2 years ago

got the same problem :(

AdiPol1359 commented 2 years ago

same

Yamuko commented 2 years ago

How fix this problem?

iProGamer commented 2 years ago

@isaackogan please update

isaackogan commented 2 years ago

@isaackogan please update

don't force others to do free work. @isaackogan is busy, he has to focus on college. if you have money, there are some people who offer services for this, like https://github.com/reverse4free/TiktokPerseusWeb (not mine)

For what it's worth, I would assume his signature generator is also not working at the moment

isaackogan commented 2 years ago

@isaackogan please update

don't force others to do free work. @isaackogan is busy, he has to focus on college. if you have money, there are some people who offer services for this, like https://github.com/reverse4free/TiktokPerseusWeb (not mine)

For what it's worth, I would assume his signature generator is also not working at the moment

maybe right, i use this libs https://github.com/carcabot/tiktok-signature for signing and working for now.

I looked into this yesterday and it doesn't provide msToken generation?

isaackogan commented 2 years ago

@isaackogan please update

don't force others to do free work. @isaackogan is busy, he has to focus on college. if you have money, there are some people who offer services for this, like https://github.com/reverse4free/TiktokPerseusWeb (not mine)

For what it's worth, I would assume his signature generator is also not working at the moment

maybe right, i use this libs https://github.com/carcabot/tiktok-signature for signing and working for now.

I looked into this yesterday and it doesn't provide msToken generation?

msToken from automated browser (puppetter/playwright) is invalid. if you take from regular browser (with user logged in) it may work, but sometimes not.

Heh, not exactly great to run an API off of

Norbiros commented 2 years ago

same here

SnoutUp commented 2 years ago

Hopefully this will be possible to resolve. Best of luck with midterms!

isaackogan commented 2 years ago

We're back, errors should all be resolved. Read about it here: https://github.com/isaackogan/TikTokLive/issues/75

Norbiros commented 2 years ago

It works, thx :)

affluentmind commented 2 years ago

Error: Missing cursor in initial fetch response.

crypxeo commented 2 years ago

Unfortunately the same error again :(

adierebel commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

isaackogan commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

Can you clarify what you mean in the second part of your post? Screenshots would be helpful!

isaackogan commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

Screen Shot 2022-10-03 at 3 41 08 PM

Currently I cannot replicate this

affluentmind commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

Same actually

affluentmind commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

Can you clarify what you mean in the second part of your post? Screenshots would be helpful!

Chat is being shown on the tiktok app, but is not on the web version

isaackogan commented 2 years ago

Not working again, also when opening live on tiktok.com chat is not loaded.

Can you clarify what you mean in the second part of your post? Screenshots would be helpful!

Chat is being shown on the tiktok app, but is not on the web version

Screenshot please. And confirm chat is not shown when logged in

isaackogan commented 2 years ago

I won't lie to you, that looks more like TikTok breaking and not an update. Can you show us the console (maybe there are errors)? Sorry to use you as my personal debugger, but until it comes to my region there isn't much I can do!

isaackogan commented 2 years ago

Try a VPN or going on your mobile data hotspot. Maybe tiktok are blocking your IP because they detect usage of the library. Let me know the results :p

robintuffeau commented 2 years ago

Hi! I have all the same problems here, and I haven't try before on this current IP.

iProGamer commented 2 years ago

same here

zerodytrash commented 2 years ago

Try a VPN or going on your mobile data hotspot. Maybe tiktok are blocking your IP because they detect usage of the library. Let me know the results :p

Screen Shot 2022-10-04 at 03 08 19

I think tiktok is broken, here SSL error. Or they updating new function into production and not going well.

No, they blocked your IP because you used the library. They are starting to go crazy.

zerodytrash commented 2 years ago

or your device fingerprint.

isaackogan commented 2 years ago

Since no one else has said it, hello ByteDance employee reading this thread 👋

brogrammer1337 commented 2 years ago

I have the same problem, with 2 different devices and 2 different IPs. :(

Bildschirmfoto 2022-10-03 um 22 51 56
iProGamer commented 2 years ago

I have the same problem, with 2 different devices and 2 different IPs. :( Bildschirmfoto 2022-10-03 um 22 51 56

me too

affluentmind commented 2 years ago

weird tho, now i'm getting everything on my webapp, but the library still doesn't work

qrrqwww
affluentmind commented 2 years ago

So I was able to find something interesting from fetched urls ?aid=1988& header seems to have changed to ?version_code=180800 header

or am i mistaken

Changing that unto the code got me back a Failed to connect Error: TikTok does not offer a websocket upgrade. Please provide a valid sessionId to use request polling instead, and it returns data unlike the first fetch aid tag returns blank data

EDIT : providing sessionId after editing the said parameter gave back responses

EDIT: just removing aid tag fixes the request no WebSocket

ErmanSNTRK commented 2 years ago

Has a solution been found?

brogrammer1337 commented 2 years ago

So I was able to find something interesting from fetched urls ?aid=1988& header seems to have changed to ?version_code=180800 header

or am i mistaken

Changing that unto the code got me back a Failed to connect Error: TikTok does not offer a websocket upgrade. Please provide a valid sessionId to use request polling instead, and it returns data unlike the first fetch aid tag returns blank data

EDIT : providing sessionId after editing the said parameter gave back responses

Your way actually works, I tried it. However, the polling is really slow, you can't really work with it. WebSocket is really important.

ErmanSNTRK commented 2 years ago

https://tikfinity.zerody.one/

How is it working?

ErmanSNTRK commented 2 years ago

https://tikfinity.zerody.one/ How is it working?

this libs is working on US

And also working for Turkey.

lucasbaylon commented 2 years ago

image I still have the same problem

rodolfo5543 commented 2 years ago

@lucasbaylon I have the same

iProGamer commented 2 years ago

all people

ErmanSNTRK commented 2 years ago
Screen Shot 2022-10-04 at 05 47 08

Python version is working, but js version is not yet.

We need js. :)

msTokens commented 2 years ago

Since no one else has said it, hello ByteDance employee reading this thread 👋

ByteDance go and let us Dance without Signatures :D