grafana/k6 · error
unqouting K6_INSTANCE_SCENARIOS: %w
Error message
unqouting K6_INSTANCE_SCENARIOS: %w
What it means
Error "unqouting K6_INSTANCE_SCENARIOS: %w" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/browser/browser/registry.go:126
}
return true, parts
}
// checkForScenarios will parse the K6_INSTANCE_SCENARIOS env var if
// it has been defined.
func checkForScenarios(envLookup env.LookupFunc) (bool, []string, error) {
scenariosJSON, isRemote := envLookup(env.InstanceScenarios)
if !isRemote {
return false, nil, nil
}
// prevent failing in unquoting empty string.
if scenariosJSON == "" {
return false, nil, nil
}
scenariosJSON, err := strconv.Unquote(scenariosJSON)
if err != nil {
return false, nil, fmt.Errorf("unqouting K6_INSTANCE_SCENARIOS: %w", err)
}
var scenarios []struct {
ID string `json:"id"`
Browsers []struct {
Handle string `json:"handle"`
} `json:"browsers"`
}
if err := json.Unmarshal([]byte(scenariosJSON), &scenarios); err != nil {
return false, nil, fmt.Errorf("parsing K6_INSTANCE_SCENARIOS: %w", err)
}
var wsURLs []string
for _, s := range scenarios {
for _, b := range s.Browsers {
if strings.TrimSpace(b.Handle) == "" {
continue
}View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/browser/registry.go:126 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/9f614ec54663fcdc.
Report an issue: GitHub.