{"record":{"id":"061a5a630393b13e","repo":"JuliusBrussee/caveman","slug":"start-browser-w","errorCode":null,"errorMessage":"start browser: %w","messagePattern":"start browser: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"browse/cdp.go","lineNumber":88,"sourceCode":"\t\tif !opts.Headless {\n\t\t\texecOpts = append(execOpts, chromedp.Flag(\"headless\", false))\n\t\t}\n\t\tallocCtx, allocCancel = chromedp.NewExecAllocator(parent, execOpts...)\n\t}\n\tvar ctx context.Context\n\tvar cancel context.CancelFunc\n\tif opts.TargetID != \"\" {\n\t\tctx, cancel = chromedp.NewContext(allocCtx, chromedp.WithTargetID(cdptarget.ID(opts.TargetID)))\n\t} else {\n\t\tctx, cancel = chromedp.NewContext(allocCtx)\n\t}\n\tif err := chromedp.Run(ctx); err != nil {\n\t\tcancel()\n\t\tallocCancel()\n\t\tif tmpProfile != \"\" {\n\t\t\t_ = os.RemoveAll(tmpProfile)\n\t\t}\n\t\treturn nil, fmt.Errorf(\"start browser: %w\", err)\n\t}\n\treturn &CDPDriver{allocCtx: allocCtx, allocCancel: allocCancel, ctx: ctx, cancel: cancel, tmpProfile: tmpProfile}, nil\n}\n\nfunc (d *CDPDriver) Close() error {\n\tif d.cancel != nil {\n\t\td.cancel()\n\t}\n\tif d.allocCancel != nil {\n\t\td.allocCancel()\n\t}\n\tif d.tmpProfile != \"\" {\n\t\treturn os.RemoveAll(d.tmpProfile)\n\t}\n\treturn nil\n}\n\nfunc (d *CDPDriver) TargetID() string {","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/browse/cdp.go#L70-L106","documentation":"chromedp.Run failed while bringing up the CDP browser context in NewCDPDriver — the browser process started but the initial DevTools session could not be established. The temporary profile directory and allocator are cleaned up before this error is returned.","triggerScenarios":"Thrown at browse/cdp.go:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the Chrome/Chromium binary is installed and executable and its version is compatible","Inspect the wrapped chromedp error for exit-status or timeout detail","Retry once after confirming no stale chrome processes or locked profile dirs remain"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"766dce6b1394ebb56a3090748d5a0240a5aefb36","analyzedAt":"2026-08-18T03:14:35.516Z","contentChangedAt":"2026-08-18T03:14:35.516Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}