跳转至

Webhooks(Webhooks(网络钩子))

What causes the CannotUseSynchronousWebhookOutputFromOptionalWebhook error, and how can it be resolved?

The error is caused by the function that generates input for the webhook having an optional return type, which means it could return undefined. If the function returns undefined, the webhook will not run. The resolution is to ensure that the function does not return an undefined value, thus making the webhook non-optional.

Timestamp: April 16, 2024

Is it possible to save a PDF from a webhook call into a dataset or media set?

No, it is not currently possible to save a PDF from a webhook call into a dataset or a media set.

Timestamp: May 19, 2024

Is it possible to execute a webhook without Editor permissions on the associated Source?

Yes, this is possible; to do so, set up a custom role for executing webhooks, which allows users to execute a webhook without requiring Editor permissions on the webhook source.

Timestamp: July 26, 2024

How can I perform two API calls with different domains?

You can add multiple domains to the source to perform API calls with different domains.

Timestamp: July 26, 2024


中文翻译


Webhooks(网络钩子)

什么原因导致 CannotUseSynchronousWebhookOutputFromOptionalWebhook 错误,以及如何解决?

该错误是由于为 webhook 生成输入的函数具有可选返回类型(optional return type)导致的,这意味着该函数可能返回 undefined。如果函数返回 undefined,webhook 将不会运行。解决方案是确保函数不会返回 undefined 值,从而使 webhook 变为非可选(non-optional)。

时间戳: 2024年4月16日

是否可以通过 webhook 调用将 PDF 保存到 dataset(数据集)或 media set(媒体集)?

不可以,目前无法通过 webhook 调用将 PDF 保存到 dataset 或 media set。

时间戳: 2024年5月19日

是否可以在没有关联 Source(源)的 Editor 权限的情况下执行 webhook?

可以,这是可行的;为此,需要设置一个用于执行 webhook 的自定义角色,该角色允许用户在不具备 webhook 源 Editor 权限的情况下执行 webhook。

时间戳: 2024年7月26日

如何执行两个不同域名的 API 调用?

您可以在源中添加多个域名,以执行不同域名的 API 调用。

时间戳: 2024年7月26日