> 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.googledrivetrigger/common-issues.md).

# Duaer 里 Google Drive Trigger 的常见问题

Duaer 里 Google Drive 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 里启用 Google Drive API。
- [服务账号凭证](/zh/integrations/builtin/credentials/google/service-account.md)：在 Google Workspace 管理后台为这个服务账号开启全网域委派，并把 Google Drive API 需要的授权范围加进去。

## 一次多个文件变更 <a href="#handling-more-than-one-file-change" id="handling-more-than-one-file-change"></a>

Google Drive Trigger 按 Poll Times 轮询，默认每分钟一次。两次轮询之间符合 Watch For 的变更，会在同一次运行里作为多条数据输出。后续节点要能处理多条，需要时用 [If](/zh/integrations/builtin/core-nodes/duaer-nodes-base.if.md) 分开。
## Questions

### Duaer 的 Google Drive Trigger 为什么一次输出多条？

Duaer 的 Google Drive Trigger 按轮询检查，两次轮询之间的所有变更会在同一次运行里输出。

