grafana/k6 · error
internal error while updating protocol request interception…
Error message
internal error while updating protocol request interception %T: %w
What it means
Failure while flipping the CDP Fetch/Network configuration that implements request interception (enabling Fetch with auth handling and cache disable, or disabling both). Marked 'internal' because the failing action is protocol bookkeeping the user does not directly control; usually the session died or the browser rejected the domain change.
Solutions
- Verify the browser session is healthy before enabling interception/authentication
- Retry the operation (Route, Authenticate) after re-establishing the page
- Report as a k6/browser bug if it reproduces on a live, idle browser
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/common/network_manager.go:889 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@8d06114777 (2026-08-18).
Data as JSON: /api/errors/ccc7c679d62f1349.
Report an issue: GitHub.
Appendix: source
Thrown at internal/js/modules/k6/browser/common/network_manager.go:889
network.SetCacheDisabled(true),
fetch.Enable().
WithHandleAuthRequests(true).
WithPatterns([]*fetch.RequestPattern{
{
URLPattern: "*",
RequestStage: fetch.RequestStageRequest,
},
}),
}
if !enabled {
actions = []Action{
network.SetCacheDisabled(false),
fetch.Disable(),
}
}
for _, action := range actions {
if err := action.Do(cdp.WithExecutor(m.ctx, m.session)); err != nil {
return fmt.Errorf("internal error while updating protocol request interception %T: %w", action, err)
}
}
return nil
}
// Authenticate sets HTTP authentication credentials to use.
func (m *NetworkManager) Authenticate(credentials Credentials) error {
m.credentials = credentials
if !credentials.IsEmpty() {
m.userReqInterceptionEnabled = true
}
if err := m.updateProtocolRequestInterception(); err != nil {
return fmt.Errorf("setting authentication credentials: %w", err)
}
return nil
}View on GitHub (pinned to 8d06114777)