Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webhook execution error: Hook executed successfully but returned HTTP 400 missing_text_or_fallback_or_attachments

Tags:

gitlab

slack

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?

like image 473
Shristina Avatar asked Feb 05 '20 05:02

Shristina


People also ask

What is webhook error 400 and how to fix it?

Webhook error 400 occurs due to the malformation of the request. Sometimes, the data sent by the client to the server have an incorrect format. And, this differs from the way the receiving service want the data to be. Therefore, it returns error 400. How we fix webhook error 400?

How to create a webhook in Microsoft Teams?

Hitting the Test button under projects Settings > Integrations > Webhook returns Hook executed successfully but returned HTTP 400 Summary or Text is required. even when the URL is reachable. (Microsoft teams) Follow documentation to create webhook in Microsoft teams. Create a webhook at Settings > Integrations > Webhook with Tag push enabled.

What is a webhook error in bobcares?

Webhooks facilitate syncing and relaying data between two applications. At Bobcares, we often receive requests to fix webhook errors as a part of our Server Management Services. Today, let’s have a look at this error, its causes, and some top fixes. What is webhook error 400? A webhook is a popular API concept.

What is a webhook?

A webhook is a popular API concept. It is the way of exchanging real-time information between applications. API and webhook perform similar functions but have some differences too. In the case of API, it delivers data when requested. But, webhooks get the data in realtime when the criteria are met. Usually, we design an API for the webhook to use.


1 Answers

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.

https://gitlab.com/gitlab-org/gitlab-foss/uploads/56ed3353dea919d1ccb8e337500e81d1/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.PNG

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.

like image 141
VonC Avatar answered Oct 06 '22 12:10

VonC