shadow1ng/fscan · error

service_auth_failed: %d

Error message

service_auth_failed: %d

What it means

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.

Source

Thrown at plugins/services/rabbitmq.go:124

			Error:     err,
		}
	}
	defer func() { _ = resp.Body.Close() }()

	if resp.StatusCode == 200 {
		return &AuthResult{
			Success:   true,
			Conn:      &rabbitMQConnWrapper{},
			ErrorType: ErrorTypeUnknown,
			Error:     nil,
		}
	}

	if resp.StatusCode == 401 || resp.StatusCode == 403 {
		return &AuthResult{
			Success:   false,
			ErrorType: ErrorTypeAuth,
			Error:     fmt.Errorf(i18n.GetText("service_auth_failed")+": %d", resp.StatusCode),
		}
	}

	return &AuthResult{
		Success:   false,
		ErrorType: ErrorTypeUnknown,
		Error:     fmt.Errorf(i18n.GetText("unexpected_status_code")+": %d", resp.StatusCode),
	}
}

// rabbitMQConnWrapper RabbitMQ连接包装器
type rabbitMQConnWrapper struct{}

func (w *rabbitMQConnWrapper) Close() error {
	return nil
}

// classifyRabbitMQErrorType RabbitMQ错误分类

View on GitHub (pinned to 95cc12e753)

Solutions

  1. Try other credential pairs from the configured dictionary
  2. Verify the management plugin user has sufficient permissions
  3. Check whether the account is the guest account restricted to localhost
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at plugins/services/rabbitmq.go:124 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of shadow1ng/fscan@95cc12e753 (2026-09-06). Data as JSON: /api/errors/0a0c962d6db11cb4. Report an issue: GitHub.