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

TimeoutError: Navigation timeout of 30000 ms exceeded #98

Open
giovannidotpoli opened this issue May 25, 2022 · 10 comments
Open

TimeoutError: Navigation timeout of 30000 ms exceeded #98

giovannidotpoli opened this issue May 25, 2022 · 10 comments

Comments

@giovannidotpoli
Copy link

This is the error i get:

Failed to set language, trying fallback (cookie) TimeoutError: Navigation timeout of 30000 ms exceeded
at /home/pi/apps/instauto/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:108:111
TimeoutError: Navigation timeout of 30000 ms exceeded
at /home/pi/apps/instauto/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:108:111

@mifi
Copy link
Owner

mifi commented May 25, 2022

does it happen every time?

@giovannidotpoli
Copy link
Author

Yes, always

@mifi
Copy link
Owner

mifi commented Jun 7, 2022

does it happen on multiple accounts? what about on non-raspberry pi computer?

@giovannidotpoli
Copy link
Author

giovannidotpoli commented Jun 8, 2022 via email

@mifi
Copy link
Owner

mifi commented Jun 8, 2022

maybe some dependencies missing? do you see any GUI popup? try with both headless: true and headless: false and see if it makes a difference

@mifi mifi changed the title on raspberry failed to set the language TimeoutError: Navigation timeout of 30000 ms exceeded Oct 11, 2022
@gsvh
Copy link

gsvh commented May 14, 2023

I'm also getting this issue, it seems like it isn't able to set the language
It works fine on my local, but when I deploy to render, then this happens

May 15 12:35:35 AM  [1] 2023-05-14T22:35:35.530Z Setting language to English (en)
May 15 12:35:35 AM  [1] 2023-05-14T22:35:35.822Z Waiting 1.07 sec
May 15 12:36:06 AM  [1] 2023-05-14T22:36:06.893Z Failed to set language, trying fallback (cookie) TimeoutError: Navigation timeout of 30000 ms exceeded
May 15 12:36:06 AM  [1]     at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158:12)
May 15 12:36:36 AM  [1] TimeoutError: Navigation timeout of 30000 ms exceeded
May 15 12:36:36 AM  [1]     at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158:12)
May 15 12:36:36 AM  [1] Closing browser

EDIT: noticed that I didn't include all the lines in the error message

@gsvh
Copy link

gsvh commented May 14, 2023

I followed the example.js file

@gsvh
Copy link

gsvh commented May 14, 2023

I'm also getting this puppeteer warning in the console
warning @puppeteer/browsers@1.2.0: Invalid bin entry for "@puppeteer/browsers" (in "@puppeteer/browsers").

@gsvh
Copy link

gsvh commented May 15, 2023

This morning I am getting another error (which is not related to this issue, just adding it in here for context)
It also happens when it tries to set the language to English

May 15 09:32:09 AM  [1] 2023-05-15T07:32:09.544Z Setting language to English (en)
May 15 09:32:09 AM  [1] 2023-05-15T07:32:09.544Z Waiting 1.21 sec
May 15 09:32:13 AM  [1] 2023-05-15T07:32:13.210Z Failed to set language, trying fallback (cookie) Error: net::ERR_TOO_MANY_REDIRECTS at https://www.instagram.com/?hl=en
May 15 09:32:13 AM  [1]     at navigate (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:215:23)
May 15 09:32:13 AM  [1]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
May 15 09:32:13 AM  [1]     at async Frame.goto (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:181:21)
May 15 09:32:13 AM  [1]     at async CDPPage.goto (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:438:16)
May 15 09:32:13 AM  [1]     at async setLang (/opt/render/project/src/node_modules/instauto/src/index.js:933:9)
May 15 09:32:13 AM  [1]     at async Instauto (/opt/render/project/src/node_modules/instauto/src/index.js:1009:3)
May 15 09:32:13 AM  [1]     at async file:///opt/render/project/src/labourer/index.js:215:24
May 15 09:32:15 AM  [1] Error: net::ERR_TOO_MANY_REDIRECTS at https://www.instagram.com/?hl=en
May 15 09:32:15 AM  [1]     at navigate (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:215:23)
May 15 09:32:15 AM  [1]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
May 15 09:32:15 AM  [1]     at async Frame.goto (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:181:21)
May 15 09:32:15 AM  [1]     at async CDPPage.goto (file:///opt/render/project/src/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:438:16)
May 15 09:32:15 AM  [1]     at async setLang (/opt/render/project/src/node_modules/instauto/src/index.js:967:7)
May 15 09:32:15 AM  [1]     at async Instauto (/opt/render/project/src/node_modules/instauto/src/index.js:1009:3)
May 15 09:32:15 AM  [1]     at async file:///opt/render/project/src/labourer/index.js:215:24
May 15 09:32:15 AM  [1] Closing browser

My project is being ran on a server, I am not intending to log in with this account from anywhere else, but could it be that because the server's ip address changes, that it is being picked up as suspicious by instagram?

@akun-ini-dijual-ya
Copy link

D:\ig>node example
No followed database found
No unfollowed database found
No likes database found
2024-02-08T05:14:46.997Z Setting language to English (en)
2024-02-08T05:14:46.997Z Waiting 1.01 sec
2024-02-08T05:15:18.027Z Failed to set language, trying fallback (cookie) TimeoutError: Navigation timeout of 30000 ms exceeded
at D:\ig\node_modules\puppeteer\lib\cjs\puppeteer\common\LifecycleWatcher.js:108:111
TimeoutError: Navigation timeout of 30000 ms exceeded
at D:\ig\node_modules\puppeteer\lib\cjs\puppeteer\common\LifecycleWatcher.js:108:111
Closing browser

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