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).
MIT License
332 stars 135 forks source link

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

Closed julio213180 closed 1 year ago

julio213180 commented 1 year ago

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.

tempus099 commented 1 year ago

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.

brotherblackdog commented 1 year ago

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

estatistics commented 1 year ago

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

tbm commented 1 year ago

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
quanth1508 commented 1 year ago

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

matthewcoolio commented 1 year ago

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

tbm commented 1 year ago

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

n0l3r commented 1 year ago

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

julio213180 commented 1 year ago

Nice, thank you