WIKI 对接Webhook 推送通知报错

通过钉钉告警群粘贴钉钉机器人api,错误详情如下

image image image

抛错详情

{"errcode":40035,"errmsg":"缺少参数 json"}
Headers
Server: DingTalk/1.0.0
Date: Wed, 02 Aug 2023 04:00:21 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Cache-Control: no-cache
请求
{
  "object_kind": "wiki_page",
  "user": {
    "id": 29008,
    "name": "huanxin",
    "username": "huanxin",
    "avatar_url": "https://jihulab.com/uploads/-/system/user/avatar/29008/avatar.png",
    "email": "[REDACTED]"
  },
  "project": {
    "id": 59220,
    "name": "售前通用",
    "description": "",
    "web_url": "https://jihulab.com/jh-presales/general",
    "avatar_url": "https://jihulab.com/uploads/-/system/project/avatar/59220/win-win__1_.png",
    "git_ssh_url": "git@jihulab.com:jh-presales/general.git",
    "git_http_url": "https://jihulab.com/jh-presales/general.git",
    "namespace": "极狐GitLab售前团队",
    "visibility_level": 0,
    "path_with_namespace": "jh-presales/general",
    "default_branch": "main",
    "ci_config_path": "",
    "homepage": "https://jihulab.com/jh-presales/general",
    "url": "git@jihulab.com:jh-presales/general.git",
    "ssh_url": "git@jihulab.com:jh-presales/general.git",
    "http_url": "https://jihulab.com/jh-presales/general.git"
  },
  "wiki": {
    "web_url": "https://jihulab.com/jh-presales/general/-/wikis/home",
    "git_ssh_url": "git@jihulab.com:jh-presales/general.wiki.git",
    "git_http_url": "https://jihulab.com/jh-presales/general.wiki.git",
    "path_with_namespace": "jh-presales/general.wiki",
    "default_branch": "main"
  },
  "object_attributes": {
    "slug": "售前文档导航栏",
    "title": "售前文档导航栏",
    "format": "markdown",
    "content": "## 导航栏\r\n\r\n### 技术文档类\r\n- 功能使用\r\n  - [极狐GitLab企业级功能详解](https://www.wolai.com/gwbHb4oY8juQEBGNv7GCCz)\r\n  - [使用GitLab管理大文件](https://www.yuque.com/rangwu/gitlab/ty5h0xnlvpfaiei5?singleDoc#)\r\n  - [重新定义极狐GitLab流水线类型](https://wurang.net/gitlab-ci-type/)\r\n  - [嵌入式开发场景下的代码管理方案](https://wurang.net/embedded-scm/)\r\n  - [在GitLab SaaS上保护您的代码](https://wurang.net/the_ultimate_guide_to_securing_your_code_on_gitlab/)\r\n  - [泰康高可用&GEO实施方案](https://docs.google.com/presentation/d/1aKEMVeDmheg9kGBMUWbZPFRSlM2o1hBN/edit?usp=drive_link&ouid=117997855474526684103&rtpof=true&sd=true)\r\n\r\n- 三方集成\r\n  - [极狐GitLab组合式DevSecOps集成方案](https://www.yuque.com/rangwu/gitlab/ihqk4u2fdg19lxwo?singleDoc#)\r\n  - [第三方安全工具与极狐GitLab各版本集成方式](https://www.yuque.com/rangwu/gitlab/xqfkrf0arzmgr7rd?singleDoc#)\r\n  - [极狐GitLab与钉钉集成](https://note.youdao.com/s/CYugBNo6)\r\n  - [极狐GitLab与企业微信集成](https://note.youdao.com/s/6Tg9Zmb3)\r\n  - [极狐GitLab与Jira集成](https://note.youdao.com/s/FiE1CLCz)\r\n  - [极狐GitLab与PingCode集成](https://note.youdao.com/s/LOuirXCe)\r\n- 迁移相关\r\n  - [GitLab到GitLab的导入导出式数据迁移](https://note.youdao.com/s/1sTLeYWu)  \r\n  - [Gitee将项目迁移到GitLab](https://note.youdao.com/s/bUWcI4IZ)\r\n  - [Gitea将项目迁移至GitLab](https://note.youdao.com/s/iZiHIYN)\r\n- 部署相关\r\n  - [在国产ARM架构服务器上安装极狐GitLab](https://www.yuque.com/rangwu/gitlab/oa6fz7zm74uoqvwp?singleDoc#)\r\n  - [使用极狐GitLab在K8S中进行CD的几种方式](https://wurang.net/gitlab-cd-in-k8s/)\r\n  - [极狐星Towerfox 安装指南及试用](https://note.youdao.com/s/RSKTecaT) \r\n- 信创相关\r\n  - [极狐GitLab 基于TDSQL部署指南](https://note.youdao.com/s/dLMnPJJ3) ",
    "message": "更新 售前文档导航栏",
    "url": "https://jihulab.com/jh-presales/general/-/wikis/%E5%94%AE%E5%89%8D%E6%96%87%E6%A1%A3%E5%AF%BC%E8%88%AA%E6%A0%8F",
    "action": "update",
    "diff_url": "https://jihulab.com/jh-presales/general/-/wikis/%E5%94%AE%E5%89%8D%E6%96%87%E6%A1%A3%E5%AF%BC%E8%88%AA%E6%A0%8F/diff?version_id=cd08f219c3b1a8521b989d500d1f2509ca0dd5cd"
  }
}
Headers
Content-Type: application/json
User-Agent: GitLab/16.2.0-jh
X-Gitlab-Event: Wiki Page Hook
X-Gitlab-Webhook-UUID: 7c03f590-e111-4b19-b3ff-59836e5e6b0f
X-Gitlab-Instance: https://jhgitlab.com
X-Gitlab-Event-UUID: 06f82f11-5067-455e-92cd-7cda0bfebd2f
X-Gitlab-Token: [REDACTED]