N8N中文教程
集成节点/Built in_nodes/Triggers/Gmail_Trigger

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. 启用全域委派
     2. 确保在全域委派配置中添加了 Gmail API