wahdalo / tiktok-src

Tiktok downloader & auto upload to reels facebook (with puppeteer)
MIT License
156 stars 58 forks source link

TypeError: Cannot read properties of undefined (reading 'click') #15

Closed 3xtazzy closed 7 months ago

3xtazzy commented 8 months ago

Terjadi saat setelah download video lalu popup browser

[14:10:59] INFO: Session ditemukan, mencoba akses Facebook...
[14:11:02] Berhasil membuka fb
[14:11:02] TypeError: Cannot read properties of undefined (reading 'click')
[14:11:05] Berhasil membuka fb
[14:11:05] TypeError: Cannot read properties of undefined (reading 'click')
file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51
            this.#timeoutError = new TimeoutError(opts.message);
                                 ^

TimeoutError: Waiting for `FileChooser` failed: 30000ms exceeded
    at new Deferred (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51:34)
    at Deferred.create (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:13:16)
    at CdpPage.waitForFileChooser (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:353:35)
    at file:///C:/Users/eXtazzy/Documents/tiktok-src/lib/browserHandler.js:74:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
tdee912 commented 7 months ago

Terjadi saat setelah download video lalu popup browser

[14:10:59] INFO: Session ditemukan, mencoba akses Facebook...
[14:11:02] Berhasil membuka fb
[14:11:02] TypeError: Cannot read properties of undefined (reading 'click')
[14:11:05] Berhasil membuka fb
[14:11:05] TypeError: Cannot read properties of undefined (reading 'click')
file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51
            this.#timeoutError = new TimeoutError(opts.message);
                                 ^

TimeoutError: Waiting for `FileChooser` failed: 30000ms exceeded
    at new Deferred (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51:34)
    at Deferred.create (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:13:16)
    at CdpPage.waitForFileChooser (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:353:35)
    at file:///C:/Users/eXtazzy/Documents/tiktok-src/lib/browserHandler.js:74:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

copy paste ulang lagi bang cookie nya, kemungkinan session berakhir

3xtazzy commented 7 months ago

Terjadi saat setelah download video lalu popup browser

[14:10:59] INFO: Session ditemukan, mencoba akses Facebook...
[14:11:02] Berhasil membuka fb
[14:11:02] TypeError: Cannot read properties of undefined (reading 'click')
[14:11:05] Berhasil membuka fb
[14:11:05] TypeError: Cannot read properties of undefined (reading 'click')
file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51
            this.#timeoutError = new TimeoutError(opts.message);
                                 ^

TimeoutError: Waiting for `FileChooser` failed: 30000ms exceeded
    at new Deferred (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:51:34)
    at Deferred.create (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:13:16)
    at CdpPage.waitForFileChooser (file:///C:/Users/eXtazzy/Documents/tiktok-src/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:353:35)
    at file:///C:/Users/eXtazzy/Documents/tiktok-src/lib/browserHandler.js:74:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

copy paste ulang lagi bang cookie nya, kemungkinan session berakhir

Engga bisa bang, errornya itu karena facebook.com/reels/create itu udah gak bisa diakses lagi

3xtazzy commented 7 months ago

Kalo pake page/halaman, kaya gini, tapi kalo pake profile fb biasa, bisa. Kena block FB ya? image

tdee912 commented 7 months ago

Kalo pake page/halaman, kaya gini, tapi kalo pake profile fb biasa, bisa. Kena block FB ya? image

puppeteer versi berapa itu bang? coba downgrade puppeteernya

3xtazzy commented 7 months ago

Solved, pake puppeteer sesuai versi di version locknya