carcabot / tiktok-signature

Generate tiktok signature token using node
733 stars 283 forks source link

Frequent Empty String Returns in examples/user-video.js #206

Closed DenMaslov closed 5 months ago

DenMaslov commented 8 months ago

I wanted to bring to your attention an issue that I have been encountering with the examples/user-video.js file, and it has become quite vital. The examples/user-video.js file exhibits instability, returning an empty string in 90% of attempts. This behavior occurs consistently, impacting the reliability of the code execution.

Steps to Reproduce:

Run the user-video.js file using the provided code. Observe that in ~9 out of 10 attempts, the returned data is an empty string. In ~1 out of 10 attempts, the expected data is correctly returned.

Expected Behavior:

The code should consistently return valid data with each execution.

Actual Behavior:

The code frequently returns an empty string, making it unreliable for regular usage.

Additional Context:

Node.js Version: v18.10.0 Operating System: Ubuntu 20.04

I appreciate your hard work and dedication to maintaining this project. If there's any additional information or testing I can assist with, please don't hesitate to let me know. Thank you for your understanding and support.

Best regards

DenMaslov commented 8 months ago

image

It works from several attempts, for example on srceenshot from 4th attempt... Each time different IP were used for each request. Maybe something with url with msToken, or with url sign functionality. Or time based: sometimes it works from first attempt 20 times in a row. But there were moments when 20 times in a row it does not work... Maybe some shared tokens and somebody is using orso... Any helps/ideas are much appreciated))

crazould commented 8 months ago

i found the same issue

tonywangcn commented 7 months ago

mstoken is required

DenMaslov commented 7 months ago

mstoken is required

should i add to "const TT_REQ_PERM_URL" ? manual works destroys all automation...

crazould commented 7 months ago

can you give an example how to add this msToken please ? @tonywangcn

tonywangcn commented 7 months ago

@DenMaslov should be inside params. You can get that token through some tricks.

crazould commented 7 months ago

It works for the first time, but after that i get empty string again. I think I should change the MsToken for every request ? where do i get this MsToken ?

tonywangcn commented 7 months ago

a single msToken is valid for at least one week. If empty, maybe you should change your IP or use a proxy.

DenMaslov commented 7 months ago

@DenMaslov should be inside params. You can get that token through some tricks.

Comparing with TikTokAPI params of playwright "headless=False" helped...

crazould commented 7 months ago

I use your solution @DenMaslov and it works! Thank you so much guys!

jgore077 commented 6 months ago

@tonywangcn What tricks would you use to get it out?

carcabot commented 5 months ago

Check latest commit.

riyan10dec commented 4 months ago

Hi, are you guys still able to get the user videos? Yesterday, I try to get user videos and succeed But today, it is failing (empty response)

I've tried to change the msToken, deviceId, headless = false, and using raotating residential proxy, but still same. Please help @carcabot

riyan10dec commented 4 months ago

update: using newer deviceId works. but not sure it will not fail again after some period

is there any way to generate the deviceId @carcabot ?

MyNameJeff12123 commented 4 months ago

Still blank responses,

riyan10dec commented 4 months ago

Still blank responses,

yup. turns out still empty response.

singhera-ilmiya commented 4 months ago

Please use proxy if you are facing blank response issue

On Tue, Apr 23, 2024 at 1:25 PM riyan10dec @.***> wrote:

Still blank responses,

yup. turns out still empty response.

— Reply to this email directly, view it on GitHub https://github.com/carcabot/tiktok-signature/issues/206#issuecomment-2071949471, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7NNC7VMXE2I7KC47LOEMLY6YZITAVCNFSM6AAAAABAZEUQW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRHE2DSNBXGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

riyan10dec commented 4 months ago

Please use proxy if you are facing blank response issue On Tue, Apr 23, 2024 at 1:25 PM riyan10dec @.> wrote: Still blank responses, yup. turns out still empty response. — Reply to this email directly, view it on GitHub <#206 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7NNC7VMXE2I7KC47LOEMLY6YZITAVCNFSM6AAAAABAZEUQW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRHE2DSNBXGE . You are receiving this because you are subscribed to this thread.Message ID: @.>

Already use rotating residential proxy

zakrian07 commented 4 months ago

with proxy sometime response come and some time not is there any permanent workaround @carcabot