跳到主要内容

Gmail 触发器节点常见问题

以下列出 Gmail 触发器节点的常见错误和问题,以及解决或排查步骤。

401 未授权错误 ​

完整错误信息如下:

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(API 与服务 > 库)中启用 Gmail API。更多信息请参阅 Google OAuth2 单服务凭据:启用 API。
  2. 使用服务账户凭据时:
    1. 启用全域委派。
    2. 确保在全域委派配置中添加 Gmail API。
本文为社区中文翻译。查看对应英文原文