Webhook 执行错误:Hook 执行成功但返回 HTTP 400 missing_text_or_fallback_or_attachments [英] Webhook execution error: Hook executed successfully but returned HTTP 400 missing_text_or_fallback_or_attachments

查看:35
本文介绍了Webhook 执行错误:Hook 执行成功但返回 HTTP 400 missing_text_or_fallback_or_attachments的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Slack 与 GitLab 集成.

  • 我在 slack 中安装了一个 webhook,并将 webhook url 复制到 GitLab 的应用程序集成中.
  • 我还在 GitLab 的集成设置中启用了 Slack 集成.
<块引用>

但是我不断收到错误:

Hook 成功执行但返回 HTTP 400 missing_text_or_fallback_or_attachments

我怎样才能避免这个错误?

解决方案

目前后面是

但即使这样似乎也不够(似乎 在 OP 的情况下工作).
检查您是否在 sudo gitlab-ctl tail 中看到任何堆栈跟踪.

I am trying to integrate Slack with GitLab.

  • I installed a webhook in slack and copied the webhook url to GitLab's app integration.
  • I have also enabled the Slack integration in GitLab's integration setting.

However I keep getting the error:

Hook executed successfully but returned HTTP 400 missing_text_or_fallback_or_attachments

How can I avoid this error?

解决方案

This is currently followed by gitlab-org/gitlab-foss issue 41853

It includes:

Don't use the Integration part.. read further.

Use Slack Notifications what's in the end of Project services if you scroll down on the Project > Settings > Integration page.

But even that does not seem to be always enough (it appears to work in the OP's case).
Check if you see any stack trace in sudo gitlab-ctl tail.

这篇关于Webhook 执行错误:Hook 执行成功但返回 HTTP 400 missing_text_or_fallback_or_attachments的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆