Gogs + Drone:Gogs webhook return 400 with Cannot find repository

Gogs + Drone: Gogs webhook return 400 with Cannot find repository

Drone CI 在无人机主页中有这个存储库,但是,gogs webhook 请求 reposonse 400 找不到存储库

Gogs webhook 发出 POST/hook 请求。

{
  "ref": "refs/heads/master",
  "before": "ae25bc66898ec377b5e94c39a4e9511a3640336a",
  "after": "ae25bc66898ec377b5e94c39a4e9511a3640336a",
  "compare_url": "",
  "commits": [
    {
      "id": "ae25bc66898ec377b5e94c39a4e9511a3640336a",
      "message": "[feat]: add ci drone.yml\n",
      "url": "http://gogs.site.com/root/Alertmanager-feishu-webhook/commit/ae25bc66898ec377b5e94c39a4e9511a3640336a",
      "author": {
        "name": "Bowser",
        "email": "bowser1704@icloud.com",
        "username": ""
      },

响应是:

{"message":"Cannot find repository"}

日志是:

{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2020-09-27T03:15:10Z","type":"docker","variant":""}
{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2020-09-27T03:15:10Z","type":"docker","variant":""}
{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2020-09-27T03:15:20Z","type":"docker","variant":""}
{"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: request queue item","os":"linux","time":"2020-09-27T03:15:20Z","type":"docker","variant":""}

我通过在专用实例上安装 Drone 来修复它。这似乎是一个难以理解的网络问题。

Drone doc

Please note we strongly recommend installing Drone on a dedicated instance. We do not recommend installing Drone and Gitea on the same instance using docker-compose due to network complications.