NoMethodError: undefined method `code' for #<NoMethodError: undefined method `code' for #<Gitlab::HTTP::BlockedU...
Sentry Issue: GITLABCOM-M6G
SocketError: getaddrinfo: Name or service not known
lib/gitlab/url_blocker.rb:180:in `getaddrinfo'
Addrinfo.getaddrinfo(uri.hostname, get_port(uri), nil, :STREAM).map do |addr|
lib/gitlab/url_blocker.rb:180:in `get_address_info'
Addrinfo.getaddrinfo(uri.hostname, get_port(uri), nil, :STREAM).map do |addr|
lib/gitlab/url_blocker.rb:74:in `validate_url_with_proxy!'
address_info = get_address_info(uri)
lib/gitlab/http_connection_adapter.rb:51:in `validate_url_with_proxy!'
Gitlab::UrlBlocker.validate_url_with_proxy!(
lib/gitlab/http_connection_adapter.rb:27:in `connection'
result = validate_url_with_proxy!(uri)
...
(114 additional frame(s) were not displayed)
Gitlab::UrlBlocker::BlockedUrlError: Host cannot be resolved or invalid
lib/gitlab/url_blocker.rb:80:in `rescue in validate_url_with_proxy!'
raise BlockedUrlError, 'Host cannot be resolved or invalid'
lib/gitlab/url_blocker.rb:73:in `validate_url_with_proxy!'
begin
lib/gitlab/http_connection_adapter.rb:51:in `validate_url_with_proxy!'
Gitlab::UrlBlocker.validate_url_with_proxy!(
lib/gitlab/http_connection_adapter.rb:27:in `connection'
result = validate_url_with_proxy!(uri)
lib/gitlab/http.rb:65:in `perform_request'
httparty_perform_request(http_method, path, options_with_timeouts) do |fragment|
...
(113 additional frame(s) were not displayed)
Gitlab::HTTP::BlockedUrlError: URL is blocked: Host cannot be resolved or invalid
lib/gitlab/http_connection_adapter.rb:58:in `rescue in validate_url_with_proxy!'
raise Gitlab::HTTP::BlockedUrlError, "URL is blocked: #{e.message}"
lib/gitlab/http_connection_adapter.rb:50:in `validate_url_with_proxy!'
def validate_url_with_proxy!(url)
lib/gitlab/http_connection_adapter.rb:27:in `connection'
result = validate_url_with_proxy!(uri)
lib/gitlab/http.rb:65:in `perform_request'
httparty_perform_request(http_method, path, options_with_timeouts) do |fragment|
lib/gitlab/jira/http_client.rb:38:in `public_send'
result = Gitlab::HTTP.public_send(http_method, path, **request_params) # rubocop:disable GitlabSecurity/PublicSend
...
(112 additional frame(s) were not displayed)
NoMethodError: undefined method `code' for #<Gitlab::HTTP::BlockedUrlError: URL is blocked: Host cannot be resolved or invalid>
app/models/integrations/jira.rb:634:in `rescue in jira_request'
log_exception(e, message: 'Error sending message', client_url: client_url, client_path: path, client_status: e.code)
app/models/integrations/jira.rb:630:in `jira_request'
def jira_request(path)
app/models/integrations/jira.rb:563:in `find_remote_link'
links = jira_request(path) { issue.remotelink.all }
app/models/integrations/jira.rb:544:in `block in send_message'
remote_link = find_remote_link(issue, remote_link_props[:object][:url])
app/models/integrations/jira.rb:631:in `jira_request'
yield
...
(96 additional frame(s) were not displayed)
NoMethodError: undefined method `code' for #<NoMethodError: undefined method `code' for #<Gitlab::HTTP::BlockedUrlError: URL is blocked: Host cannot be resolved or invalid>>
app/models/integrations/jira.rb:634:in `rescue in jira_request'
log_exception(e, message: 'Error sending message', client_url: client_url, client_path: path, client_status: e.code)
app/models/integrations/jira.rb:630:in `jira_request'
def jira_request(path)
app/models/integrations/jira.rb:543:in `send_message'
jira_request(path) do
app/models/integrations/jira.rb:492:in `add_comment'
send_message(issue, message, link_props)
app/models/integrations/jira.rb:347:in `create_cross_reference_note'
add_comment(data, jira_issue).tap { log_usage(:cross_reference, author) }
...
(93 additional frame(s) were not displayed)