ruby/rubygems · error · Gem::WebauthnVerificationError
Security device verification failed: #{response.message}
Error message
Security device verification failed: #{response.message} What it means
Error "Security device verification failed: #{response.message}" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/gemcutter_utilities/webauthn_poller.rb:49
@host = host
end
def self.poll_thread(options, host, webauthn_url, credentials)
Thread.new do
thread = Thread.current
thread.abort_on_exception = true
thread.report_on_exception = false
thread[:otp] = new(options, host).poll_for_otp(webauthn_url, credentials)
rescue Gem::WebauthnVerificationError, Gem::Timeout::Error => e
thread[:error] = e
end
end
def poll_for_otp(webauthn_url, credentials)
Gem::Timeout.timeout(TIMEOUT_IN_SECONDS) do
loop do
response = webauthn_verification_poll_response(webauthn_url, credentials)
raise Gem::WebauthnVerificationError, response.message unless response.is_a?(Gem::Net::HTTPSuccess)
require "json"
parsed_response = JSON.parse(response.body)
case parsed_response["status"]
when "pending"
sleep 5
when "success"
return parsed_response["code"]
else
raise Gem::WebauthnVerificationError, parsed_response.fetch("message", "Invalid response from server")
end
end
end
end
private
def webauthn_verification_poll_response(webauthn_url, credentials)View on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/rubygems/gemcutter_utilities/webauthn_poller.rb:49 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/651d11d79bef57a9.
Report an issue: GitHub.