{"record":{"id":"af92afc54c3cdbc4","repo":"projectdiscovery/nuclei","slug":"slice-doesn-t-exist-in-any-of-v-places-to-unmarsh","errorCode":null,"errorMessage":"slice doesn't exist in any of %v places to unmarshal","messagePattern":"slice doesn't exist in any of (.+?) places to unmarshal","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/reporting/trackers/linear/jsonutil/jsonutil.go","lineNumber":138,"sourceCode":"\n\t\t// Are we inside an array and seeing next value (rather than end of array)?\n\t\tcase d.state() == '[' && tok != json.Delim(']'):\n\t\t\tsomeSliceExist := false\n\t\t\tfor i := range d.vs {\n\t\t\t\tv := d.vs[i][len(d.vs[i])-1]\n\t\t\t\tif v.Kind() == reflect.Pointer {\n\t\t\t\t\tv = v.Elem()\n\t\t\t\t}\n\t\t\t\tvar f reflect.Value\n\t\t\t\tif v.Kind() == reflect.Slice {\n\t\t\t\t\tv.Set(reflect.Append(v, reflect.Zero(v.Type().Elem()))) // v = append(v, T).\n\t\t\t\t\tf = v.Index(v.Len() - 1)\n\t\t\t\t\tsomeSliceExist = true\n\t\t\t\t}\n\t\t\t\td.vs[i] = append(d.vs[i], f)\n\t\t\t}\n\t\t\tif !someSliceExist {\n\t\t\t\treturn fmt.Errorf(\"slice doesn't exist in any of %v places to unmarshal\", len(d.vs))\n\t\t\t}\n\t\t}\n\n\t\tswitch tok := tok.(type) {\n\t\tcase string, json.Number, bool, nil:\n\t\t\t// Value.\n\n\t\t\tfor i := range d.vs {\n\t\t\t\tv := d.vs[i][len(d.vs[i])-1]\n\t\t\t\tif !v.IsValid() {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\terr := unmarshalValue(tok, v)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t}\n\t\t\td.popAllVs()","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/reporting/trackers/linear/jsonutil/jsonutil.go#L120-L156","documentation":"Error \"slice doesn't exist in any of %v places to unmarshal\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/reporting/trackers/linear/jsonutil/jsonutil.go:138 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":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}