Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: report target connection errors in client certificates to DEBUG logs (#36813)

Max Schmitt612a25b13913
diff --git a/packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts b/packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts
index 896dd2f091..da706fd940 100644
--- a/packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts
+++ b/packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts
@@ -260,6 +260,7 @@ export class ClientCertificatesProxy {
await connection.connect();
this._connections.set(payload.uid, connection);
} catch (error) {
+ debugLogger.log('client-certificates', `Failed to connect to ${payload.host}:${payload.port}: ${error.message}`);
this._socksProxy.socketFailed({ uid: payload.uid, errorCode: error.code });
}
});