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 凭据,请确保您已在 APIs & Services > Library API 和服务 > 库 中启用 Gmail API。请参阅 Google OAuth2 单一服务 - 启用 API 了解更多信息。
- 对于 服务帐户 凭据:
- 启用域范围委托。
- 确保将 Gmail API 添加为域范围委派配置的一部分。
不想自己部署和维护 n8n?n8ncn 托管 n8n 云服务:开通账号即可使用,不用买服务器;也可以在 n8ncn 工作流库 找现成的中文工作流。