{"record":{"id":"cc83a46823fba800","repo":"shadow1ng/fscan","slug":"unexpected-status-code-d","errorCode":null,"errorMessage":"unexpected_status_code: %d","messagePattern":"unexpected_status_code: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/services/rabbitmq.go","lineNumber":131,"sourceCode":"\t\t\tSuccess:   true,\n\t\t\tConn:      &rabbitMQConnWrapper{},\n\t\t\tErrorType: ErrorTypeUnknown,\n\t\t\tError:     nil,\n\t\t}\n\t}\n\n\tif resp.StatusCode == 401 || resp.StatusCode == 403 {\n\t\treturn &AuthResult{\n\t\t\tSuccess:   false,\n\t\t\tErrorType: ErrorTypeAuth,\n\t\t\tError:     fmt.Errorf(i18n.GetText(\"service_auth_failed\")+\": %d\", resp.StatusCode),\n\t\t}\n\t}\n\n\treturn &AuthResult{\n\t\tSuccess:   false,\n\t\tErrorType: ErrorTypeUnknown,\n\t\tError:     fmt.Errorf(i18n.GetText(\"unexpected_status_code\")+\": %d\", resp.StatusCode),\n\t}\n}\n\n// rabbitMQConnWrapper RabbitMQ连接包装器\ntype rabbitMQConnWrapper struct{}\n\nfunc (w *rabbitMQConnWrapper) Close() error {\n\treturn nil\n}\n\n// classifyRabbitMQErrorType RabbitMQ错误分类\nfunc classifyRabbitMQErrorType(err error) ErrorType {\n\tif err == nil {\n\t\treturn ErrorTypeUnknown\n\t}\n\n\trabbitMQAuthErrors := []string{\n\t\t\"authentication failed\",","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/plugins/services/rabbitmq.go#L113-L149","documentation":"Guard in doRabbitMQAuth: the management API returned a status code outside {200, 401, 403}, e.g. 5xx or 3xx. The code maps to no credential verdict, so the result is marked ErrorTypeUnknown rather than success or auth failure.","triggerScenarios":"Thrown at plugins/services/rabbitmq.go:131 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check RabbitMQ management plugin health and endpoint URL","Retry transient server errors with backoff","Verify no reverse proxy is intercepting the request"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95cc12e753bf43de7004e5aef42a9ffba3934303","analyzedAt":"2026-09-06T17:07:30.094Z","contentChangedAt":"2026-09-06T17:07:30.094Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}