fawazahmed0 / youtube-uploader

Free youtube video uploader with no limits
MIT License
361 stars 84 forks source link

video upload is getting failed on vercel(Timeout error) #239

Open virendrarajpurohit opened 9 months ago

virendrarajpurohit commented 9 months ago

Hi, When we use this library on server(vercel) then video upload is getting failed after launching the browser. the error it gives is:

TimeoutError: waiting for selector `input[type="password"]:not([aria-hidden="true"])` failed: timeout 60000ms exceeded
    at new WaitTask (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/IsolatedWorld.js:445:34)
    at IsolatedWorld._waitForSelectorInPage (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/IsolatedWorld.js:335:26)
    at Object.internalHandler.waitFor (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:46:83)
    at Frame.waitForSelector (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/Frame.js:420:36)
    at Page.waitForSelector (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2318:39)
    at login (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:974:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async loadAccount (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:838:13)
    at async upload (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:52:9)

is the issue because of google blocking the automated usage of pupeteer. if so, then why it works perfectly on local?

ali-kingX commented 8 months ago

I have this issue too, just trying to upload a video with this, nothing special.

developerfromjokela commented 8 months ago

Hi, When we use this library on server(vercel) then video upload is getting failed after launching the browser. the error it gives is:

TimeoutError: waiting for selector `input[type="password"]:not([aria-hidden="true"])` failed: timeout 60000ms exceeded
    at new WaitTask (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/IsolatedWorld.js:445:34)
    at IsolatedWorld._waitForSelectorInPage (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/IsolatedWorld.js:335:26)
    at Object.internalHandler.waitFor (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:46:83)
    at Frame.waitForSelector (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/Frame.js:420:36)
    at Page.waitForSelector (/vercel/path0/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2318:39)
    at login (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:974:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async loadAccount (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:838:13)
    at async upload (/vercel/path0/node_modules/youtube-videos-uploader/dist/upload.js:52:9)

is the issue because of google blocking the automated usage of pupeteer. if so, then why it works perfectly on local?

They added recaptcha prompts, that's why you get the password prompt timeout.

virendrarajpurohit commented 7 months ago

@developerfromjokela yes, do you know any way to by pass those recaptcha prompts.

MDxWARRIORxOP commented 7 months ago

So this will never work again then?