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 自动发送

¥This email was sent automatically with n8n

移除此属性:

¥To remove this attribution:

  1. 在节点的“选项”部分,选择“添加选项”。

¥In the node's Options section, select Add option. 2. 选择“追加 n8n 归属”。

¥Select Append n8n attribution. 3. 关闭开关。

¥Turn the toggle off.

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

¥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

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

¥The full text of the error looks like this:

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

¥For OAuth2 credentials, make sure you've enabled the Gmail API in APIs & Services > Library. Refer to Google OAuth2 Single Service - Enable APIs for more information. 2. 服务帐号 凭证:

¥For Service Account credentials: 1. 启用域范围委托

1
  ¥[Enable domain-wide delegation](/integrations/builtin/credentials/google/service-account.md#enable-domain-wide-delegation).
  1. 确保将 Gmail API 添加为域级委托配置的一部分。

    ¥Make sure you add the Gmail API as part of the domain-wide delegation configuration.

错误请求 - 请检查你的参数#

¥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 执行 Get 操作以确认其是否存在。

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