Error with Download
Pises98 opened this issue · comments
Error: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getVideo (C:\Users\Asus\Desktop\Python312\tiktok-downloader-main\index.js:126:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async C:\Users\Asus\Desktop\Python312\tiktok-downloader-main\index.js:320:20
Response body:
C:\Users\Asus\Desktop\Python312\tiktok-downloader-main\index.js:133
if (res.aweme_list[0].aweme_id != idVideo) {
^
TypeError: Cannot read properties of undefined (reading 'aweme_list')
at getVideo (C:\Users\Asus\Desktop\Python312\tiktok-downloader-main\index.js:133:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async C:\Users\Asus\Desktop\Python312\tiktok-downloader-main\index.js:320:20
Node.js v20.11.0