Skip to content

Gmail 触发节点常见问题

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

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凭据,请确保已在API 和服务 > 库中启用 Gmail API。有关更多信息,请参阅Google OAuth2 单一服务 - 启用 API
  2. 对于服务帐户凭据:
    1. 启用域范围委派
    1. 确保将 Gmail API 添加为域范围委派配置的一部分。