Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
virendrarajpurohit opened this issue Jan 21, 2024 · 4 comments
Open

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

virendrarajpurohit opened this issue Jan 21, 2024 · 4 comments

Comments

@virendrarajpurohit
Copy link

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
Copy link

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

@developerfromjokela
Copy link

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
Copy link
Author

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

@MDxWARRIORxOP
Copy link

So this will never work again then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants