gitlab Push event webhook 出现500错误

本文记录了在GitLab中设置Webhook时遇到的问题及解决过程。主要问题是在进行测试时出现500 Internal Server Error错误,通过查看日志文件定位到具体的错误类型为URI::InvalidURIError,并最终在GitLab官方文档中找到解决方案。

gitlab中添加webhook,点击Test出现错误

这里写图片描述

错误日志

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/-/metrics" for 127.0.0.1 at 2018-05-11 04:27:39 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)

==> /var/log/gitlab/gitlab-rails/production_json.log <==
{
  
  "method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"duration":3.88,"view":0.26,
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值