tiktok-signature
tiktok-signature copied to clipboard
Frequent Empty String Returns in examples/user-video.js
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
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))
i found the same issue
mstoken is required
mstoken is required
should i add to "const TT_REQ_PERM_URL" ? manual works destroys all automation...
can you give an example how to add this msToken please ? @tonywangcn
@DenMaslov should be inside params. You can get that token through some tricks.
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 ?
a single msToken is valid for at least one week. If empty, maybe you should change your IP or use a proxy.
@DenMaslov should be inside params. You can get that token through some tricks.
Comparing with TikTokAPI params of playwright "headless=False" helped...
I use your solution @DenMaslov and it works! Thank you so much guys!
@tonywangcn What tricks would you use to get it out?
Check latest commit.
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
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 ?
Still blank responses,
Still blank responses,
yup. turns out still empty response.
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: @.***>
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
with proxy sometime response come and some time not is there any permanent workaround @carcabot