> 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/trigger-nodes/duaer-nodes-base.gmailtrigger/common-issues.md).

# Duaer 里 Gmail Trigger 的常见问题

Duaer 里 Gmail Trigger 的常见问题：401 和一次收到多封邮件。
## 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 需要的授权范围加进去。

## 一次收到多封邮件 <a href="#handling-more-than-one-email" id="handling-more-than-one-email"></a>

Gmail Trigger 按 Poll Times 轮询，默认每分钟一次。两次轮询之间来了几封邮件，就在同一次运行里输出几条数据。后续节点要能处理多条，需要时用 [If](/zh/integrations/builtin/core-nodes/duaer-nodes-base.if.md) 分开。
## Questions

### Duaer 的 Gmail Trigger 多久检查一次新邮件？

Duaer 的 Gmail Trigger 按 Poll Times 轮询，默认每分钟一次。

