Gmail 触发器节点常见问题#
以下是 Gmail 触发器节点 的常见错误与问题及其解决方法或排查步骤。
401 未经授权错误#
错误完整提示如下:
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."}
当您使用的凭据及其范围或权限存在问题时,会出现此错误。
解决方法:
- 对于 OAuth2 凭据,请确保已在 API 和服务 > 库 中启用 Gmail API。更多信息请参阅 Google OAuth2 单服务 - 启用 API。
- 对于 服务账号 凭据:
- 启用全域委派
- 确保在全域委派配置中添加 Gmail API