Skip to content

Gmail 节点常见问题(Gmail node common issues)#

这里是一些关于 Gmail 节点 的常见错误和问题,以及解决或排查它们的步骤。

🌐 Here are some common errors and issues with the Gmail node and steps to resolve or troubleshoot them.

移除已发送消息中的 n8n 属性(Remove the n8n attribution from sent messages)#

如果你使用该节点来发送消息回复消息,节点会将此语句添加到电子邮件的末尾:

🌐 If you're using the node to send a message or reply to a message, the node appends this statement to the end of the email:

此电子邮件由 n8n 自动发送

移除此属性:

🌐 To remove this attribution:

  1. 在节点的 选项 部分,选择 添加选项
  2. 选择 添加 n8n 归属
  3. 关闭开关。

有关更多信息,请参阅 发送选项回复选项

🌐 Refer to Send options and Reply options for more information.

禁止访问 - 请检查你的凭证(Forbidden - perhaps check your credentials)#

此错误会显示在节点中的某些下拉菜单旁,例如 标签名称或ID 下拉菜单。完整文本大致如下:

🌐 This error displays next to certain dropdowns in the node, like the Label Names or IDs dropdown. The full text looks something like this:

1
There was a problem loading the parameter options from server: "Forbidden - perhaps check your credentials?"

当你使用 Google 服务账户作为凭证,并且该凭证没有启用 模拟用户 时,通常会显示此错误。

🌐 The error most often displays when you're using a Google Service Account as the credential and the credential doesn't have Impersonate a User turned on.

有关更多信息,请参阅 Google 服务账户:完成你的 n8n 凭据

🌐 Refer to Google Service Account: Finish your n8n credential for more information.

401 未授权错误(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."}

当你使用的凭据及其作用域或权限存在问题时,会发生此错误。

🌐 This error occurs when there's an issue with the credential you're using and its scopes or permissions.

解析:

🌐 To resolve:

  1. 对于 OAuth2 凭据,请确保已在 API 和服务 > 库 中启用 Gmail API。有关更多信息,请参阅 Google OAuth2 单一服务 - 启用 API
  2. 针对 服务账户 凭据:
    1. 启用全域委派
    2. 确保将 Gmail API 添加为域级委托配置的一部分。

请求错误 - 请检查你的参数(Bad request - please check your parameters)#

如果你输入的消息 ID、线程 ID 或标签 ID 不存在,则最常出现此错误。

🌐 This error most often occurs if you enter a Message ID, Thread ID, or Label ID that doesn't exist.

尝试使用该 ID 进行 获取 操作以确认其存在。

🌐 Try a Get operation with the ID to confirm it exists.