{"record":{"id":"0a3d34d7b4ef9389","repo":"grafana/k6","slug":"q-w","errorCode":null,"errorMessage":"%q: %w","messagePattern":"%q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame_session.go","lineNumber":697,"sourceCode":"\t\treturn\n\t}\n\tfor _, child := range frameTree.ChildFrames {\n\t\tfs.handleFrameTree(child, initialFrame)\n\t}\n}\n\nfunc (fs *FrameSession) navigateFrame(frame *Frame, url, referrer string) (string, error) {\n\tfs.logger.Debugf(\"FrameSession:navigateFrame\",\n\t\t\"sid:%v fid:%s tid:%v url:%q referrer:%q\",\n\t\tfs.session.ID(), frame.ID(), fs.targetID, url, referrer)\n\n\taction := cdppage.Navigate(url).WithReferrer(referrer).WithFrameID(cdp.FrameID(frame.ID()))\n\t_, documentID, errorText, _, err := action.Do(cdp.WithExecutor(fs.ctx, fs.session))\n\tif err != nil {\n\t\tif errorText == \"\" {\n\t\t\terr = fmt.Errorf(\"%w\", err)\n\t\t} else {\n\t\t\terr = fmt.Errorf(\"%q: %w\", errorText, err)\n\t\t}\n\t}\n\treturn documentID.String(), err\n}\n\nfunc (fs *FrameSession) onConsoleAPICalled(event *cdpruntime.EventConsoleAPICalled) {\n\tl := fs.logger.\n\t\tWithTime(event.Timestamp.Time()).\n\t\tWithField(\"source\", \"browser\").\n\t\tWithField(\"browser_source\", \"console-api\")\n\n\t/* accessing the state Group while not on the eventloop is racy\n\tif s := fs.vu.State(); s.Group.Path != \"\" {\n\t\tl = l.WithField(\"group\", s.Group.Path)\n\t}\n\t*/\n\n\tparsedObjects := make([]string, 0, len(event.Args))","sourceCodeStart":679,"sourceCodeEnd":715,"githubUrl":"https://github.com/grafana/k6/blob/3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee/internal/js/modules/k6/browser/common/frame_session.go#L679-L715","documentation":"In navigateFrame, the Page.navigate CDP call returned an error. When Chromium supplied no errorText, the raw CDP error is wrapped with the frame context; when errorText is present it is used instead. This is the error seen when page.goto fails at the navigation level.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame_session.go:644 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the URL is well-formed and reachable from the browser","Increase navigation timeouts and inspect net errors (DNS, TLS, refused connections)","Handle navigation errors in the script with try/catch around page.goto if they are expected"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}