{"record":{"id":"18c61427adea2a62","repo":"projectdiscovery/nuclei","slug":"error-reopening-issue-d-s","errorCode":null,"errorMessage":"error reopening issue %d: %s","messagePattern":"error reopening issue (.+?): (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/reporting/trackers/github/github.go","lineNumber":130,"sourceCode":"\t\t\tBody:      &description,\n\t\t\tLabels:    &labels,\n\t\t\tAssignees: &[]string{i.options.Username},\n\t\t}\n\t\tcreatedIssue, _, err := i.client.Issues.Create(ctx, i.options.Owner, i.options.ProjectName, req)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn &filters.CreateIssueResponse{\n\t\t\tIssueID:  strconv.FormatInt(createdIssue.GetID(), 10),\n\t\t\tIssueURL: createdIssue.GetHTMLURL(),\n\t\t}, nil\n\t} else {\n\t\tif existingIssue.GetState() == \"closed\" {\n\t\t\tstateOpen := \"open\"\n\t\t\tif _, _, err := i.client.Issues.Edit(ctx, i.options.Owner, i.options.ProjectName, *existingIssue.Number, &github.IssueRequest{\n\t\t\t\tState: &stateOpen,\n\t\t\t}); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error reopening issue %d: %s\", *existingIssue.Number, err)\n\t\t\t}\n\t\t}\n\n\t\treq := &github.IssueComment{\n\t\t\tBody: &description,\n\t\t}\n\t\t_, _, err = i.client.Issues.CreateComment(ctx, i.options.Owner, i.options.ProjectName, *existingIssue.Number, req)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn &filters.CreateIssueResponse{\n\t\t\tIssueID:  strconv.FormatInt(existingIssue.GetID(), 10),\n\t\t\tIssueURL: existingIssue.GetHTMLURL(),\n\t\t}, nil\n\t}\n}\n\nfunc (i *Integration) CloseIssue(event *output.ResultEvent) error {","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/reporting/trackers/github/github.go#L112-L148","documentation":"Error \"error reopening issue %d: %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/reporting/trackers/github/github.go:130 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"}