microsoft/playwright · error · Error
Pending client connection closed
Error message
Pending client connection closed
What it means
Error "Pending client connection closed" thrown in microsoft/playwright.
Source
Thrown at packages/extension/src/background.ts:105
} catch (error: any) {
sendResponse({ success: false, error: error.message });
}
return true;
case 'keepalive':
// Connect page pings us every ~20s so receiving this message resets
// the MV3 service worker idle timer and keeps the relay WebSocket alive.
return false;
}
}
private async _connectTab(selectorTabId: number, tab: chrome.tabs.Tab & { id: number }, clientName: string | undefined): Promise<void> {
try {
await this._cleanupPromise;
this._disconnect('Another connection is requested');
const connection = await this._pendingConnections.take(selectorTabId);
if (!connection)
throw new Error('Pending client connection closed');
const group = new ConnectedTabGroup(connection, tab);
group.onclose = () => {
if (this._activeGroup === group) {
this._activeGroup = undefined;
this._activeClientName = undefined;
}
};
this._activeGroup = group;
this._activeClientName = clientName;
await Promise.all([
chrome.tabs.update(tab.id, { active: true }),
chrome.windows.update(tab.windowId, { focused: true }),
]).catch(() => {});
if (tab.id !== selectorTabId)
await chrome.tabs.remove(selectorTabId).catch(() => {});View on GitHub (pinned to c8fc3bf8d3)
When it happens
Trigger: Thrown at packages/extension/src/background.ts:105 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Connection failures: ECONNREFUSED, ECONNRESET, and friends — why connections get refused, reset, or dropped.
AI-assisted analysis of microsoft/playwright@c8fc3bf8d3 (2026-08-12).
Data as JSON: /api/errors/b7e12bb102d40cbe.
Report an issue: GitHub.