theforeman/foreman · error · GraphQL::ExecutionError
Too many tries, please try again in a few minutes.
Error message
Too many tries, please try again in a few minutes.
What it means
Error "Too many tries, please try again in a few minutes." thrown in theforeman/foreman.
Source
Thrown at app/graphql/mutations/sign_in_user.rb:22
class SignInUser < BaseMutation
null true
argument :username, String, required: true
argument :password, String, required: true
field :token, String, null: false
field :user, Types::User, null: false
def resolve(username:, password:)
return unless username && password
bruteforce_protection = Foreman::BruteforceProtection.new(
request_ip: context[:request_ip]
)
if bruteforce_protection.bruteforce_attempt?
bruteforce_protection.log_bruteforce
raise GraphQL::ExecutionError, _('Too many tries, please try again in a few minutes.')
end
user = User.try_to_login(username, password)
unless user
Rails.logger.warn("Failed login attempt from #{context['request_ip']} with username '#{username}'.")
bruteforce_protection.count_login_failure
return
end
{
token: user.jwt_token!,
user: user,
}
end
end
end
View on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/graphql/mutations/sign_in_user.rb:22 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/c4e17541b23f6100.
Report an issue: GitHub.