# 我创建了Webhook，但事件发生后，事件响应出错。

**URL:** <https://meta.discourse.org/t/i-have-created-webhook-but-after-event-happen-i-am-getting-error-in-response-of-event/299927>\
**Category:** Development\
**Tags:** webhooks\
**Created:** [2024年三月19日 05:49 UTC](https://meta.discourse.org/t/i-have-created-webhook-but-after-event-happen-i-am-getting-error-in-response-of-event/299927 "2024-03-19T05:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepkumar0555](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pradeepkumar0555](https://meta.discourse.org/u/pradeepkumar0555)\
**Post date:** [2024年三月19日 05:49 UTC](https://meta.discourse.org/t/i-have-created-webhook-but-after-event-happen-i-am-getting-error-in-response-of-event/299927/1 "2024-03-19T05:49:01Z")

</div>

我创建了一个带有我所需数据的 webhook，并提供了当事件发生时我需要调用的其他源 URL。

但是，事件发生后，我收到了以下错误：

**错误：操作超时 - FinalDestination::HTTP**  
我们正在使用的 Discourse 实例版本是 3.3.0.beta1

有人知道如何解决这个问题吗？  
我们也在遵循以下文章：

> [@Configure webhooks that trigger on Discourse events to integrate with external services](https://meta.discourse.org/t/configure-webhooks-that-trigger-on-discourse-events-to-integrate-with-external-services/49045):
>
> A webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its technical details. In this #howto, I’ll set up webhook to power a Github bot for referencing pull request brought in a forum. We’ll want to see a new comment on Github pull request when a new post has a link to it. It’s a very simple process: Publish a new post. A webhook event happ…

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2024年三月19日 10:19 UTC](https://meta.discourse.org/t/i-have-created-webhook-but-after-event-happen-i-am-getting-error-in-response-of-event/299927/2 "2024-03-19T10:19:50Z")

</div>

看起来 discourse 无法连接到您的服务器。

您可以检查是否可以使用 curl 或 wget 从 discourse 服务器连接到您的服务器。

---

<div class="post-metadata">

**Author:** ![pradeepkumar0555](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pradeepkumar0555](https://meta.discourse.org/u/pradeepkumar0555)\
**Post date:** [2024年三月21日 04:33 UTC](https://meta.discourse.org/t/i-have-created-webhook-but-after-event-happen-i-am-getting-error-in-response-of-event/299927/3 "2024-03-21T04:33:56Z")

</div>

谢谢 @pfaffman，我将与团队核实。
