{"record":{"id":"fe2f5cf4ef891d6d","repo":"microsoft/playwright","slug":"unknown-connect-filter-connectfilter","errorCode":null,"errorMessage":"Unknown connect filter: ${connectFilter}","messagePattern":"Unknown connect filter: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/remote/playwrightServer.ts","lineNumber":122,"sourceCode":"        try {\n          launchOptions = JSON.parse(launchOptionsParam || launchOptionsHeaderValue);\n          if (!launchOptions.timeout)\n            launchOptions.timeout = DEFAULT_PLAYWRIGHT_LAUNCH_TIMEOUT;\n        } catch (e) {\n        }\n\n        const isExtension = this._options.mode === 'extension';\n        launchOptions = filterLaunchOptions(launchOptions, isExtension || !!this._options.unsafe);\n\n        // Always override artifacts dir with the one from server options.\n        if (this._options.artifactsDir)\n          launchOptions.artifactsDir = this._options.artifactsDir;\n\n        if (isExtension) {\n          const connectFilter = url.searchParams.get('connect');\n          if (connectFilter) {\n            if (connectFilter !== 'first')\n              throw new Error(`Unknown connect filter: ${connectFilter}`);\n            return new PlaywrightConnection(\n                browserSemaphore,\n                new WebSocketServerTransport(ws),\n                false,\n                this._playwright,\n                () => this._initConnectMode(id, connectFilter, browserName, launchOptions),\n                id,\n            );\n          }\n\n          if (url.searchParams.has('debug-controller')) {\n            return new PlaywrightConnection(\n                controllerSemaphore,\n                new WebSocketServerTransport(ws),\n                true,\n                this._playwright,\n                async () => { throw new Error('shouldnt be used'); },\n                id,","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/remote/playwrightServer.ts#L104-L140","documentation":"Error \"Unknown connect filter: ${connectFilter}\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/remote/playwrightServer.ts:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6","analyzedAt":"2026-08-12T07:26:36.950Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}