Skip to content

Gmail 触发节点常见问题#

¥Gmail Trigger node common issues

以下是 Gmail 触发节点 的一些常见错误和问题,以及解决或故障排除步骤。

¥Here are some common errors and issues with the Gmail Trigger node and steps to resolve or troubleshoot them.

401 未授权错误#

¥401 unauthorized error

完整的错误文本如下所示:

¥The full text of the error looks like this:

1
401 - {"error":"unauthorized_client","error_description":"Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."}

当你使用的凭据及其作用域或权限存在问题时,会发生此错误。

¥This error occurs when there's an issue with the credential you're using and its scopes or permissions.

解析:

¥To resolve:

  1. 对于 OAuth2 凭据,请确保你已在“API 和服务”>“库”中启用 Gmail API。有关更多信息,请参阅 Google OAuth2 单服务 - 启用 API

¥For OAuth2 credentials, make sure you've enabled the Gmail API in APIs & Services > Library. Refer to Google OAuth2 Single Service - Enable APIs for more information. 2. 服务帐号 凭证:

¥For Service Account credentials: 1. 启用域范围委托

1
  ¥[Enable domain-wide delegation](/integrations/builtin/credentials/google/service-account.md#enable-domain-wide-delegation).
  1. 确保将 Gmail API 添加为域级委托配置的一部分。

    ¥Make sure you add the Gmail API as part of the domain-wide delegation configuration.