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

Hello, i'm getting error while downloading a single video. #5

Closed fallabdoulaye93 closed 1 year ago

fallabdoulaye93 commented 2 years 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.

return Body.Promise.reject(new FetchError(invalid json response body at ${_this2.url} reason: ${err.message}, 'invalid-json')); ^ FetchError: invalid json response body at https://api.tiktokv.com/aweme/v1/multi/aweme/detail/?aweme_ids=%5B7121740182239317253%5b reason: Unexpected end of JSON input at /Applications/MAMP/htdocs/temp/tiktok-downloader/node_modules/node-fetch/lib/index.js:273:32 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async getVideoNoWM (/Applications/MAMP/htdocs/temp/tiktok-downloader/index.js:98:17) at async /Applications/MAMP/htdocs/temp/tiktok-downloader/index.js:196:89 { type: 'invalid-json' }

pratamaid commented 2 years ago

That's because the API from https://api.tiktokv.com can't be used anymore

kwstasna commented 1 year ago

Is there any alternative way?