> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/integrations/builtin/app-nodes/duaer-nodes-base.gmail/common-issues.md).

# Duaer 里 Gmail 的常见问题

Duaer 里 Gmail 节点的常见问题：邮件末尾的署名、Forbidden、401 和无效参数。
## 去掉邮件末尾的 Duaer 署名 <a href="#remove-the-duaer-attribution-from-sent-messages" id="remove-the-duaer-attribution-from-sent-messages"></a>

发送或回复邮件时，默认在末尾加上 This email was sent automatically with Duaer。在 Options 里添加 Append Duaer Attribution 并关掉即可。

## Forbidden - perhaps check your credentials? <a href="#forbidden-perhaps-check-your-credentials" id="forbidden-perhaps-check-your-credentials"></a>

常出现在 Label Names or IDs 等下拉框旁。多半是用了 Google 服务账号却没打开 Impersonate a User。在 [服务账号凭证](/zh/integrations/builtin/credentials/google/service-account.md) 里打开它，填要代为操作的邮箱。

## 401 unauthorized_client <a href="#id-401-unauthorized-error" id="id-401-unauthorized-error"></a>

完整报错类似 401 - {"error":"unauthorized_client", ...}，说明凭证的权限或授权范围不对：

- [OAuth2 凭证](/zh/integrations/builtin/credentials/google/oauth-generic.md#scopes)：在 Google Cloud 控制台的 APIs & Services → Library 里启用 Gmail API。
- [服务账号凭证](/zh/integrations/builtin/credentials/google/service-account.md)：在 Google Workspace 管理后台为这个服务账号开启全网域委派，并把 Gmail API 需要的授权范围加进去。

## Bad request - please check your parameters <a href="#bad-request-please-check-your-parameters" id="bad-request-please-check-your-parameters"></a>

多半是 Message ID、Thread ID 或 Label ID 不存在。先用同一个 ID 做一次 Get，确认它存在。
## Questions

### Duaer 的 Gmail 节点怎么去掉邮件末尾的署名？

在 Duaer Gmail 节点的 Options 里添加 Append Duaer Attribution 并关掉。

