Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 979
    • Issues 979
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 57
    • Merge requests 57
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Issues
  • #3307
Closed
Open
Created Mar 21, 2018 by Caesar@caigz

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

Assignee
Assign to
Time tracking