[PR #9] [MERGED] Update api.ts #80

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

📋 Pull Request Information

Original PR: https://github.com/guyzyl/whatsapp-contact-sync/pull/9
Author: @guyzyl
Created: 8/21/2022
Status: Merged
Merged: 8/21/2022
Merged by: @guyzyl

Base: mainHead: fix-puppeteer-bug


📝 Commits (1)

📊 Changes

1 file changed (+6 additions, -4 deletions)

View changed files

📝 server/routes/api.ts (+6 -4)

📄 Description

Fix bug where the WhatsApp client is destroyed but isn't deleted from whatsappClientMap causing the following error:

/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230
 error: new Errors_js_1.ProtocolError(),
 ^
ProtocolError: Protocol error (Runtime.callFunctionOn): Target closed.
 at /app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230:24
 at new Promise (<anonymous>)
 at CDPSession.send (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:16)
 at ExecutionContext._evaluateInternal (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
 at ExecutionContext.evaluate (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
 at DOMWorld.evaluate (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24) {
 originalMessage: ''
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/guyzyl/whatsapp-contact-sync/pull/9 **Author:** [@guyzyl](https://github.com/guyzyl) **Created:** 8/21/2022 **Status:** ✅ Merged **Merged:** 8/21/2022 **Merged by:** [@guyzyl](https://github.com/guyzyl) **Base:** `main` ← **Head:** `fix-puppeteer-bug` --- ### 📝 Commits (1) - [`7ccb13b`](https://github.com/guyzyl/whatsapp-contact-sync/commit/7ccb13be63f9aa3793d704fca1a3f877913f996d) Update api.ts ### 📊 Changes **1 file changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/routes/api.ts` (+6 -4) </details> ### 📄 Description Fix bug where the WhatsApp client is destroyed but isn't deleted from `whatsappClientMap` causing the following error: ``` /app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230 error: new Errors_js_1.ProtocolError(), ^ ProtocolError: Protocol error (Runtime.callFunctionOn): Target closed. at /app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230:24 at new Promise (<anonymous>) at CDPSession.send (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:16) at ExecutionContext._evaluateInternal (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50) at ExecutionContext.evaluate (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27) at DOMWorld.evaluate (/app/server/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24) { originalMessage: '' } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 04:59:06 +03:00
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#80
No description provided.