Whatsapp-web.js: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r800071 is guaranteed to work

Created on 14 Oct 2020  路  9Comments  路  Source: pedroslopez/whatsapp-web.js

Bug description

Im getting fatal error .Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r800071 is guaranteed to work. but after kill all node process then kill chrome then im start the program again working properly.

Anyone knows? guess what's wrong?

question

All 9 comments

Any Ideas?

See: #334

So I have to do an npm update? or what? I'm sorry I don't understand

Since that PR were not accepted yet you can not do npm update but you can see the applied changes to try on your own project doing one "manually update" on Client.js

From there you can get the "idea" that you've asked for

Since that PR were not accepted yet you can not do npm update but you can see the applied changes to try on your own project doing one "manually update" on Client.js

From there you can get the "idea" that you've asked for

what to change in client.js which function is it? I don't understand reading Github revisions

You can copy all the Client.js changes from PR and paste it to you cloned project. Below you have the raw code. Just copy and paste it to your cloned Client.js

https://raw.githubusercontent.com/pedroslopez/whatsapp-web.js/55d4cf554fe321a97a59578af10d41b900cd760d/src/Client.js

You can copy all the Client.js changes from PR and paste it to you cloned project. Below you have the raw code. Just copy and paste it to your cloned Client.js

https://raw.githubusercontent.com/pedroslopez/whatsapp-web.js/55d4cf554fe321a97a59578af10d41b900cd760d/src/Client.js

Thanks You

Let me know if the PR solves your issue, but this seems like a different problem to me. It just looks like the browser was taking too long to start up so it timed out, or some other problem with puppeteer.

You may want to experiment with puppeteer's timeout option by passing it on client creation:

const client = new Client({
    puppeteer: {
        timeout: 30000 // default is 30s
    }
})

You can copy all the Client.js changes from PR and paste it to you cloned project. Below you have the raw code. Just copy and paste it to your cloned Client.js

https://raw.githubusercontent.com/pedroslopez/whatsapp-web.js/55d4cf554fe321a97a59578af10d41b900cd760d/src/Client.js

Problem solved thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcopandolfo picture marcopandolfo  路  5Comments

MillesC picture MillesC  路  6Comments

ngekoding picture ngekoding  路  5Comments

andersondeoliveiramachado picture andersondeoliveiramachado  路  7Comments

therevolt picture therevolt  路  4Comments