Skip to content

Gmail 触发器节点常见问题#

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

401 unauthorized error 未授权错误#

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

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 添加为域范围委派配置的一部分。