whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Session closed. Most likely the page has been closed

Open RyanRyan99 opened this issue 2 years ago • 11 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Describe the bug

After a while connected, and want to send a message I get a message like this

Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.

Expected behavior

Whatsapp stays connected and doesn't have to be restarted

Steps to Reproduce the Bug or Issue

  1. Connected Account
  2. Wait for a moment
  3. Trying to send a message
  4. Error

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Windows OS whatsapp-web.js 1.17.1 version

Additional context

No response

RyanRyan99 avatar Aug 24 '22 07:08 RyanRyan99

Same problem here

albanirneves avatar Sep 05 '22 14:09 albanirneves

Same problem here.

lucacasanova avatar Sep 12 '22 20:09 lucacasanova

Same problem here.

chagasjoao avatar Nov 11 '22 13:11 chagasjoao

I also have this problem.

kulibinRuslan avatar Nov 16 '22 23:11 kulibinRuslan

Same problem here.

scisammy avatar Feb 01 '23 21:02 scisammy

Same problem here. It appears only after I try to autheticate a new session after closing the last one, without restarting the code.

jmarcosltc avatar Feb 04 '23 15:02 jmarcosltc

any news about it?

albanirneves avatar Mar 23 '23 14:03 albanirneves

Same problem here. It appears only after I try to autheticate a new session after closing the last one, without restarting the code.

Useems avatar Mar 28 '23 12:03 Useems

facing the same issue...

het-t avatar Apr 03 '23 16:04 het-t

For me it appears if the computer locks. (Mac M1)

Judahh avatar Apr 23 '23 12:04 Judahh

Same issue

siteng98 avatar May 18 '23 08:05 siteng98

+1

pierrecorsini avatar Jun 02 '23 20:06 pierrecorsini

Same problem here

ivangrosse avatar Jun 26 '23 14:06 ivangrosse

Same problem here.

onurguven avatar Jun 26 '23 20:06 onurguven

Any workaround for this issue?

loic-hamdi avatar Jun 27 '23 19:06 loic-hamdi

Any workaround for this issue?

Clear session, make login again (no prod-ready walkaround)

pierrecorsini avatar Jun 27 '23 20:06 pierrecorsini

Please tell me solution for this problem

AwesomeAbhaySingh avatar Aug 13 '23 13:08 AwesomeAbhaySingh