{"record":{"id":"e74b83ee8036ab08","repo":"projectdiscovery/nuclei","slug":"struct-field-for-q-doesn-t-exist-in-any-of-v-pla","errorCode":null,"errorMessage":"struct field for %q doesn't exist in any of %v places to unmarshal","messagePattern":"struct field for %q 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":109,"sourceCode":"\t\t\t\treturn errors.New(\"unexpected non-key in JSON input\")\n\t\t\t}\n\t\t\tsomeFieldExist := 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.Struct {\n\t\t\t\t\tf = fieldByGraphQLName(v, key)\n\t\t\t\t\tif f.IsValid() {\n\t\t\t\t\t\tsomeFieldExist = true\n\t\t\t\t\t}\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 !someFieldExist {\n\t\t\t\treturn fmt.Errorf(\"struct field for %q doesn't exist in any of %v places to unmarshal\", key, len(d.vs))\n\t\t\t}\n\n\t\t\t// We've just consumed the current token, which was the key.\n\t\t\t// Read the next token, which should be the value, and let the rest of code process it.\n\t\t\ttok, err = d.tokenizer.Token()\n\t\t\tif err == io.EOF {\n\t\t\t\treturn errors.New(\"unexpected end of JSON input\")\n\t\t\t} else if err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\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()","sourceCodeStart":91,"sourceCodeEnd":127,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/reporting/trackers/linear/jsonutil/jsonutil.go#L91-L127","documentation":"Error \"struct field for %q doesn't exist in any of %v places to unmarshal\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/reporting/trackers/linear/jsonutil/jsonutil.go:109 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"}