Skip to content

Gmail Trigger 节点常见问题#

以下是 Gmail Trigger 节点的一些常见错误和问题,以及解决方法或排查步骤。

401 未授权错误#

完整的错误信息如下所示:

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."}

当您使用的凭据及其范围或权限存在问题时,会出现此错误。

解决方法:

  1. 对于 OAuth2 凭据,请确保您已在 APIs & Services > Library 中启用了 Gmail API。更多信息请参考 Google OAuth2 单服务 - 启用 API
  2. 对于 服务账号 凭据:
    1. 启用全域委派
    2. 确保您已将 Gmail API 添加为全域委派配置的一部分。