n0l3r / tiktok-downloader

tiktok downloader is a tool to download video from tiktok with watermark or without watermark. There are two features that is, mass download (by username/urls) and single download (by url).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stoped working, it wont download anything, couldyou please take a look?

julio213180 opened this issue · comments

commented

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Same thing happened to me. Seems to be an issue with the res.aweme_list[0] part. Something is up with the API url I think.

Same here:

Error: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getVideoNoWM (/Users/nanak/tiktok-downloader/index.js:110:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/nanak/tiktok-downloader/index.js:214:89
Response body:
/Users/nanak/tiktok-downloader/index.js:115
const urlMedia = res.aweme_list[0].video.play_addr.url_list[0]
^

TypeError: Cannot read properties of undefined (reading 'aweme_list')
at getVideoNoWM (/Users/nanak/tiktok-downloader/index.js:115:38)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/nanak/tiktok-downloader/index.js:214:89

Node.js v19.5.0

same here... it founds the videos but non is downloaded

Same for me:

[*] Getting list video from: XXXX
[*] 16 video found
[*] 30 video found
[*] 30 video found
[X] No more video found
[*] Total video found: 30
[!] Found 30 video
Error: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at getVideoNoWM (/home/tbm/src/tiktok-downloader/index.js:110:33)

    at async /home/tbm/src/tiktok-downloader/index.js:214:89
Response body: 
(node:1259272) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'aweme_list' of undefined
    at getVideoNoWM (/home/tbm/src/tiktok-downloader/index.js:115:38)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /home/tbm/src/tiktok-downloader/index.js:214:89

Same thing happened to me, I not working when I any action download, hope anyone fix bug will be honored. There is log error:

Error: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getVideoNoWM (/*****/tiktok-downloader/index.js:110:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /*/tiktok-downloader/index.js:214:89
Response body:
/
/TikTok/tiktok-downloader/index.js:115
const urlMedia = res.aweme_details[0].video.play_addr.url_list[0]
^

TypeError: Cannot read properties of undefined (reading 'aweme_details')
at getVideoNoWM (//tiktok-downloader/index.js:115:38)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /
/tiktok-downloader/index.js:214:89

Made a fix for it, seems the api link was expired so I changed the link and it all works fine for me!

@matthewcoolio can you open a PR or where can we find your fix?

I have solved this problem. please re-clone this repository. Thank u :)

commented

Nice, thank you