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

Error: Missing cursor in initial fetch response. #47

Open OlegShklyarov opened 2 years ago

OlegShklyarov commented 2 years ago

After the last update. What does that mean?

lzyslh commented 2 years ago

Same issue here. This is the error log:

Failed to connect Error: Missing cursor in initial fetch response. at WebcastPushConnection._fetchRoomData2 (/var/www/mydomain/files/node_modules/tiktok-live-connector/dist/index.js:503:11) at process._tickCallback (internal/process/next_tick.js:68:7)

OlegShklyarov commented 2 years ago

They also banned my account where I took a session id from. Is not required anymore? Provided by the backend?

addeeandra commented 2 years ago

I just got the same issue :

Connection error: Missing cursor in initial fetch response.

OlegShklyarov commented 2 years ago

Maybe Tt is changing something again. They banned my sessionid account.

zerodytrash commented 2 years ago

Yes, TikTok tries again to make the library unusable. Unbelievable... I'm losing motivation for the project :(

OlegShklyarov commented 2 years ago

Yes, TikTok tries again to make the library unusable. Unbelievable... I'm losing motivation for the project :(

What if we`ll start a crowd funding campaign to keep you motivated?

zerodytrash commented 2 years ago

What if we`ll start a crowd funding campaign to keep you motivated?

Sure, if I would get money for it I could invest more time in the project and try to keep it running as good as possible. So if anyone wants to support me, let me know.

OlegShklyarov commented 2 years ago

Create a Patreon, please. And Paypal donate page.

adierebel commented 2 years ago

Create a Patreon, please. And Paypal donate page.

Yes please

OlegShklyarov commented 2 years ago

Also add a funding message to the node update logs like I saw it on other libraries.

zerodytrash commented 2 years ago

Here is my paypal: https://www.paypal.com/paypalme/dalixz

After i know what TT changed i will also create a patreon page. Thanks for your support.

OlegShklyarov commented 2 years ago

Good. We are waiting. I will promote your Paypal and Patreon across my clients.

lzyslh commented 2 years ago

Yes, TikTok tries again to make the library unusable. Unbelievable... I'm losing motivation for the project :(

Why do you think so? For what it's worth, I think this library benefits TikTok the most, don't you agree?

iProGamer commented 2 years ago

I think anything that looks too good to be true, wont last, and this service is one of them

OlegShklyarov commented 2 years ago

Yes, TikTok tries again to make the library unusable. Unbelievable... I'm losing motivation for the project :(

Why do you think so? For what it's worth, I think this library benefits TikTok the most, don't you agree?

No it is not. Tiktok hates services like this. Using them is against TOS. And he will always try to shut us down.

affluentmind commented 2 years ago

The interesting thing is , the python alternative is polling data from the webcast response but the node js isn't getting a response on _fetchRoomData2 it just returns blank

OlegShklyarov commented 2 years ago

Does Python version require sessionid and ttwid to connect?

MrBill15 commented 2 years ago

Any fix for this problems?

zerodytrash commented 2 years ago

Have updated the signing server. It now works again for me. Can anyone confirm this? (no npm update required)

iProGamer commented 2 years ago

yes it work

OlegShklyarov commented 2 years ago

Have updated the signing server. It now works again for me. Can anyone confirm this? (no npm update required)

It works for now, but we all know where it is all going... So please create a Patreon page. I will promote it starting tomorrow. All guys here, please support the author. He needs motivation to maintain this socket. Tiktok will hunt us harder and harder. Tough times ahead.

Also add Patreon and Paypal links to your Heroku Demo.

lzyslh commented 2 years ago

Working perfectly! Thank you, is there anything similar to this for Twitch?

OlegShklyarov commented 2 years ago

Working perfectly! Thank you, is there anything similar to this for Twitch?

There is a well known library tmi.js, but I use Streamlabs socket.

lzyslh commented 2 years ago

Working perfectly! Thank you, is there anything similar to this for Twitch?

There is a well known library tmi.js, but I use Streamlabs socket.

Thank you, will check them out!

zerodytrash commented 2 years ago

It works for now, but we all know where it is all going... So please create a Patreon page.

@OlegShklyarov https://www.patreon.com/zerody 😄

kadinjerry commented 2 years ago

Have updated the signing server. It now works again for me. Can anyone confirm this? (no npm update required)

It works for now, but we all know where it is all going... So please create a Patreon page. I will promote it starting tomorrow. All guys here, please support the author. He needs motivation to maintain this socket. Tiktok will hunt us harder and harder. Tough times ahead.

Also add Patreon and Paypal links to your Heroku Demo.

After I generate the signature through the signature service and generate the url, it seems that I still cannot access it normally.

Zachary-Masson commented 2 years ago

@zerodytrash , hello , the problem has been fixed, it takes a while, but immediately, it no longer works :(

Zachary-Masson commented 2 years ago

Thanks! Let see how the community supports you.

Is it just me or gift events come doubled?

@OlegShklyarov

it is necessary to make a condition following the event function, it is indicated on the documentation

renelima commented 2 years ago

The error came back... Is it just for me?

pbreit1988 commented 2 years ago

I have the same error

MrBill15 commented 2 years ago

Here is my paypal: https://www.paypal.com/paypalme/dalixz

After i know what TT changed i will also create a patreon page. Thanks for your support.

hi how about make discord too for this repo ? :D

breakerulz commented 2 years ago

The error came back... Is it just for me?

You are not alone, I have the same problem, it was working 1 hour ago, but now:

Failed to connect Error: Missing cursor in initial fetch response.
    at WebcastPushConnection._fetchRoomData2 (/home/admin/tiktok/node_modules/tiktok-live-connector/dist/index.js:503:11)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async WebcastPushConnection.connect (/home/admin/tiktok/node_modules/tiktok-live-connector/dist/index.js:268:7)
affluentmind commented 2 years ago

Signing server for node is returning blank again, /webcast/sign_url?client=ttlive-python&url= however returns a file that contains the next_cursor i'm not sure but maybe rewrite the signing process to parse next_cursor? i'm not sure how all of this works, just a thought

lunat1k-12 commented 2 years ago

Same problem for me Error: Missing cursor in initial fetch response. at WebcastPushConnection._fetchRoomData2 (/Users/yvgenchemeris/workspace/tiktok_stream/node_modules/tiktok-live-connector/dist/index.js:503:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WebcastPushConnection.connect (/Users/yvgenchemeris/workspace/tiktok_stream/node_modules/tiktok-live-connector/dist/index.js:268:7)

OlegShklyarov commented 2 years ago

It is sad that Tiktok provides no official api for live chat as it Twitch or Youtube do

Zachary-Masson commented 2 years ago

It is sad that Tiktok provides no official api for live chat as it Twitch or Youtube do

image

weteta commented 2 years ago

I put the old version and used the session ID and it's working ok

OlegShklyarov commented 2 years ago

I put the old version and used the session ID and it's working ok

Last time they banned my channel where I took sessionid from

odhier commented 2 years ago

I put the old version and used the session ID and it's working ok

I've tried to use old version, it was connected but no events are triggered

affluentmind commented 2 years ago

I put the old version and used the session ID and it's working ok

I've tried to use old version, it was connected but no events are triggered

0.9.21 works 0.9.22 gets stuck after connecting

OlegShklyarov commented 2 years ago

How to install older version?

affluentmind commented 2 years ago

How to install older version?

use npm install tiktok-live-connector@version version being the version number you want to install

Daviko290 commented 2 years ago

How to install older version?

i did it this way. npm i tiktok-live-connector@0.9.21 then with npm list you verify that it is in version 0.9.21

OlegShklyarov commented 2 years ago

I will try, thanks

dwins-dev commented 2 years ago

How to install older version?

i did it this way. npm i tiktok-live-connector@0.9.21 then with npm list you verify that it is in version 0.9.21

Version installed 0.9.21 In doing so, I used a proxy and sessionId on the client side Helped to connect without errors and receive events from the air for some time But after a few minutes the events stop. Perhaps I'm missing something?

OlegShklyarov commented 2 years ago

How to install older version?

i did it this way. npm i tiktok-live-connector@0.9.21 then with npm list you verify that it is in version 0.9.21

Version installed 0.9.21 In doing so, I used a proxy and sessionId on the client side Helped to connect without errors and receive events from the air for some time But after a few minutes the events stop. Perhaps I'm missing something?

Yes, it just stops after some time.

MrBill15 commented 2 years ago

Any hint to fix this issues?

OlegShklyarov commented 2 years ago

They are looking for a solution. Remember you can support the author and keep them active: https://www.paypal.com/paypalme/dalixz https://www.patreon.com/zerody

Daviko290 commented 2 years ago

today everything works fine

OlegShklyarov commented 2 years ago

Last version without Sessionid?