Webhook does not work for me when i update to date!
I update to GitLab Community Edition 10.5.6 today,find the webhook didn't work well
According to the log ,it show something like ‘URI::InvalidURIError’
Can someone Help me. thx a lot!
Here is the log from sidekiq
2018-03-21_00:31:00.99941 2018-03-21T00:31:00.999Z 21942 TID-oubovchr4 WARN: URI::InvalidURIError: URI::InvalidURIError
2018-03-21_00:31:00.99947 2018-03-21T00:31:00.999Z 21942 TID-oubovchr4 WARN: /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/proxy_http_connection_adapter.rb:14:in `connection'
2018-03-21_00:31:00.99947 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/httparty-0.13.7/lib/httparty/connection_adapter.rb:58:in `call'
2018-03-21_00:31:00.99948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/httparty-0.13.7/lib/httparty/request.rb:141:in `http'
2018-03-21_00:31:00.99948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/httparty-0.13.7/lib/httparty/request.rb:117:in `perform'
2018-03-21_00:31:00.99948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/httparty-0.13.7/lib/httparty.rb:545:in `perform_request'
2018-03-21_00:31:00.99948 /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/httparty-0.13.7/lib/httparty.rb:492:in `post'
keep going to find the code,"global setting allow_local_requests_from_hooks_and_services"
is there some configuration which i miss?
This class is part of the Gitlab::HTTP wrapper. Depending on the value
▽of the global setting allow_local_requests_from_hooks_and_services this adapter
# will allow/block connection to internal IPs and/or urls.
#
# This functionality can be overriden by providing the setting the option
# allow_local_requests = true in the request. For example:
# Gitlab::HTTP.get('http://www.gitlab.com', allow_local_requests: true)
#
# This option will take precedence over the global setting.
module Gitlab
class ProxyHTTPConnectionAdapter < HTTParty::ConnectionAdapter
def connection
if !allow_local_requests? && blocked_url?
raise URI::InvalidURIError
end
super
end
private