{"record":{"id":"0a0c962d6db11cb4","repo":"shadow1ng/fscan","slug":"service-auth-failed-d-0a0c96","errorCode":null,"errorMessage":"service_auth_failed: %d","messagePattern":"service_auth_failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":401,"severity":"error","filePath":"plugins/services/rabbitmq.go","lineNumber":124,"sourceCode":"\t\t\tError:     err,\n\t\t}\n\t}\n\tdefer func() { _ = resp.Body.Close() }()\n\n\tif resp.StatusCode == 200 {\n\t\treturn &AuthResult{\n\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错误分类","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/shadow1ng/fscan/blob/95cc12e753bf43de7004e5aef42a9ffba3934303/plugins/services/rabbitmq.go#L106-L142","documentation":"Guard in doRabbitMQAuth: the RabbitMQ management HTTP API responded 401 or 403, meaning the credential pair was rejected (or forbidden). Classified as ErrorTypeAuth; every code path that reaches here means the tried username/password is invalid for the endpoint.","triggerScenarios":"Thrown at plugins/services/rabbitmq.go:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Try other credential pairs from the configured dictionary","Verify the management plugin user has sufficient permissions","Check whether the account is the guest account restricted to localhost"],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}