[GH-ISSUE #135] ProtocolError: Protocol error (Network.getResponseBody): Target closed #37

Closed
opened 2026-02-27 04:58:51 +03:00 by kerem · 0 comments
Owner

Originally created by @guyzyl on GitHub (Jan 29, 2024).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/135

Bug appears when performing these actions:

  1. Open WhaSync
  2. Link WhatsApp to WhaSync
  3. Go to WhaSync home screen
  4. Remove the new linked device on WhatsApp
  5. Press Continue / Get Started on WhaSync

This error causes the backend to crash.

Full error:

ProtocolError: Protocol error (Network.getResponseBody): Target closed.
    at whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:304:16
    at new Promise (<anonymous>)
    at CDPSession.send (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:300:12)
    at whatsapp-contact-sync/server/node_modules/puppeteer/src/common/HTTPResponse.ts:192:47
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async HTTPResponse.text (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/HTTPResponse.ts:220:21)
    at async whatsapp-contact-sync/server/node_modules/whatsapp-web.js/src/Client.js:733:44 {
  originalMessage: ''

This error also sometimes appear:

Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:286:9)
    at ExecutionContext._evaluateInternal (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/ExecutionContext.ts:254:44)
    at ExecutionContext.evaluate (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/ExecutionContext.ts:140:23)
    at DOMWorld.evaluate (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/DOMWorld.ts:174:20)
Originally created by @guyzyl on GitHub (Jan 29, 2024). Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/135 Bug appears when performing these actions: 1. Open WhaSync 2. Link WhatsApp to WhaSync 3. Go to WhaSync home screen 4. Remove the new linked device on WhatsApp 5. Press Continue / Get Started on WhaSync This error causes the backend to crash. Full error: ``` ProtocolError: Protocol error (Network.getResponseBody): Target closed. at whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:304:16 at new Promise (<anonymous>) at CDPSession.send (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:300:12) at whatsapp-contact-sync/server/node_modules/puppeteer/src/common/HTTPResponse.ts:192:47 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async HTTPResponse.text (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/HTTPResponse.ts:220:21) at async whatsapp-contact-sync/server/node_modules/whatsapp-web.js/src/Client.js:733:44 { originalMessage: '' ``` This error also sometimes appear: ``` Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed. at CDPSession.send (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/Connection.ts:286:9) at ExecutionContext._evaluateInternal (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/ExecutionContext.ts:254:44) at ExecutionContext.evaluate (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/ExecutionContext.ts:140:23) at DOMWorld.evaluate (whatsapp-contact-sync/server/node_modules/puppeteer/src/common/DOMWorld.ts:174:20) ```
kerem 2026-02-27 04:58:51 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#37
No description provided.