{"record":{"id":"1d05b7e8a804da27","repo":"grafana/k6","slug":"options-v-expected-int-got-t","errorCode":null,"errorMessage":"options[%v]: expected int, got %T","messagePattern":"options\\[(.+?)\\]: expected int, got %T","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/browser/mapping.go","lineNumber":161,"sourceCode":"\t\t\t*opt.Value = v\n\t\tcase \"label\":\n\t\t\topt.Label = new(string)\n\n\t\t\tv, ok := raw.(string)\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"options[%v]: expected string, got %T\", k, raw)\n\t\t\t}\n\t\t\t*opt.Label = v\n\t\tcase \"index\":\n\t\t\topt.Index = new(int64)\n\n\t\t\tswitch raw := raw.(type) {\n\t\t\tcase int:\n\t\t\t\t*opt.Index = int64(raw)\n\t\t\tcase int64:\n\t\t\t\t*opt.Index = raw\n\t\t\tdefault:\n\t\t\t\treturn nil, fmt.Errorf(\"options[%v]: expected int, got %T\", k, raw)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn opt, nil\n}\n","sourceCodeStart":143,"sourceCodeEnd":168,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/browser/mapping.go#L143-L168","documentation":"Error \"options[%v]: expected int, got %T\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/browser/mapping.go:161 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":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}