tiktok-signature icon indicating copy to clipboard operation
tiktok-signature copied to clipboard

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

Open DenMaslov opened this issue 1 year ago • 10 comments

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 avatar Dec 18 '23 08:12 DenMaslov

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))

DenMaslov avatar Dec 19 '23 09:12 DenMaslov

i found the same issue

crazould avatar Jan 15 '24 05:01 crazould

mstoken is required

tonywangcn avatar Jan 23 '24 13:01 tonywangcn

mstoken is required

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

DenMaslov avatar Jan 23 '24 13:01 DenMaslov

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

crazould avatar Jan 23 '24 14:01 crazould

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

tonywangcn avatar Jan 23 '24 14:01 tonywangcn

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 ?

crazould avatar Jan 23 '24 14:01 crazould

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

tonywangcn avatar Jan 23 '24 14:01 tonywangcn

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

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

DenMaslov avatar Jan 23 '24 15:01 DenMaslov

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

crazould avatar Jan 24 '24 03:01 crazould

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

jgore077 avatar Mar 09 '24 21:03 jgore077

Check latest commit.

carcabot avatar Apr 15 '24 19:04 carcabot

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 avatar Apr 19 '24 06:04 riyan10dec

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 ?

riyan10dec avatar Apr 19 '24 10:04 riyan10dec

Still blank responses,

MyNameJeff12123 avatar Apr 22 '24 15:04 MyNameJeff12123

Still blank responses,

yup. turns out still empty response.

riyan10dec avatar Apr 23 '24 10:04 riyan10dec

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: @.***>

singhera-ilmiya avatar Apr 23 '24 10:04 singhera-ilmiya

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

riyan10dec avatar May 03 '24 06:05 riyan10dec

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

zakrian07 avatar May 10 '24 22:05 zakrian07