mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
788 stars 144 forks source link

TimeoutError: Navigation timeout of 30000 ms exceeded #98

Open giovannidotpoli opened 2 years ago

giovannidotpoli commented 2 years ago

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 commented 2 years ago

does it happen every time?

giovannidotpoli commented 2 years ago

Yes, always

mifi commented 2 years ago

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

giovannidotpoli commented 2 years ago

On the laptop works fine but there, it open the browser

Ottenere Outlook per Androidhttps://aka.ms/AAb9ysg


From: Mikael Finstad @.> Sent: Tuesday, June 7, 2022 11:00:35 PM To: mifi/instauto @.> Cc: giovannidotpoli @.>; Author @.> Subject: Re: [mifi/instauto] on raspberry failed to set the language (Issue #98)

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

— Reply to this email directly, view it on GitHubhttps://github.com/mifi/instauto/issues/98#issuecomment-1149162332, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALDQLP4NCEMOFU7DDXDVOZTVN6Z7HANCNFSM5W4WBCEQ. You are receiving this because you authored the thread.Message ID: @.***>

mifi commented 2 years ago

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

gsvh commented 1 year ago

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 commented 1 year ago

I followed the example.js file

gsvh commented 1 year ago

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 commented 1 year ago

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 commented 5 months ago

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