danbooru/danbooru · error · Danbooru::EmailAddress::Error
#{string} is not a valid email address
Error message
#{string} is not a valid email address What it means
Error "#{string} is not a valid email address" thrown in danbooru/danbooru.
Source
Thrown at app/logical/danbooru/email_address.rb:244
fastmail.com
relay.firefox.com
]
# @return [String] The original email address as a string.
attr_reader :address
# @return [Mail::Address] The parsed email address.
attr_reader :parsed_address
delegate :local, :domain, to: :parsed_address
alias_method :name, :local
alias_method :to_s, :address
# Parse a string into an email address, or raise an exception if the string is not a syntactically valid address.
#
# @param string [String, Danbooru::EmailAddress]
def initialize(string)
raise Error, "#{string} is not a valid email address" if !self.class.is_valid?(string)
@address = string.to_s
@parsed_address = Mail::Address.new(address)
end
# Parse a string into an email address, or return nil if the string is not a syntactically valid email address.
#
# @param url [String, Danbooru::EmailAddress]
# @return [Danbooru::EmailAddress]
def self.parse(address)
new(address)
rescue Error
nil
end
# Parse a string into an email address while attempting to fix common typos and mistakes, or return
# nil if the string can't be corrected into a valid email address.
#View on GitHub (pinned to 91fec09564)
Solutions
- Enter a syntactically valid email address of the form user@example.com.
- Check for typos, spaces, or a missing top-level domain in the address.
When it happens
Trigger: Thrown at app/logical/danbooru/email_address.rb:244 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of danbooru/danbooru@91fec09564 (2026-08-24).
Data as JSON: /api/errors/008026f0c0e98fa9.
Report an issue: GitHub.