drawrowfly / tiktok-scraper

TikTok Scraper. Download video posts, collect user/trend/hashtag/music feed metadata, sign URL and etc.
4.33k stars 795 forks source link

TypeError: Cannot read property 'tick' of undefined #549

Closed yonas closed 3 years ago

yonas commented 3 years ago

Describe the bug After download several videos of a TikTok user, I get this error:

Downloading (WITH WM) 175193233503834112 [======================        ] 71%
Downloading (WITH WM) 174343599130742784 [==============================] 100%
Downloading (WITH WM) 174747754961932288 [=====                         ] 16%Empty response! You can try again with a proxy! Can't download video: 173304513829863424
/usr/lib/node_modules/tiktok-scraper/build/core/Downloader.js:83
                        barIndex.tick(chunk.length, { id: item.id });
                                 ^

TypeError: Cannot read property 'tick' of undefined
    at Request.<anonymous> (/usr/lib/node_modules/tiktok-scraper/build/core/Downloader.js:83:34)
    at Request.emit (events.js:314:20)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/tiktok-scraper/node_modules/request/request.js:1073:12)
    at IncomingMessage.emit (events.js:314:20)
    at IncomingMessage.Readable.read (_stream_readable.js:507:10)
    at flow (_stream_readable.js:1007:34)
    at resume_ (_stream_readable.js:988:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

If fields below will be empty then issue will be Ignored and Closed

To Reproduce Steps to reproduce the behavior:

Screenshots

Screenshot from 2021-05-11 19-00-44

yonas commented 3 years ago

Pull request #550 was merged. Closing this issue.