You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Cloud Firestore报PERMISSION_DENIED权限被拒错误如何解决?

Firestore PERMISSION_DENIED 权限报错处理流程

报错详情

原始报错如下:

stream closed with status: Status{code=PERMISSION_DENIED, description=Cloud API has not been used in project 76534794857 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firestore.googleapis.com/overview?project=76534794857 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., cause=null}

报错含义:编号76534794857的项目尚未使用过Cloud Firestore API,或该API已被禁用,启用API后重试即可;若近期刚完成API启用操作,请等待数分钟待配置同步到系统后再重试。

标准处理流程

  • 登录Google Cloud Console,切换到项目ID为76534794857的目标项目
  • 进入「API和服务」管理页面,搜索找到Cloud Firestore API服务
  • 查看服务状态,若为禁用状态则点击启用按钮开启该服务
  • 首次启用后等待3-5分钟,等待配置同步到GCP全局系统
  • 重试触发报错的业务操作,验证问题是否解决

启用后仍报错的补充排查

  • 确认当前调用服务使用的账号/服务账号,对该项目具备Firestore相关操作权限
  • 确认本地认证文件、环境变量配置没有关联其他Google Cloud项目
  • 检查目标项目是否存在欠费、资源受限等异常账号状态

内容的提问来源于stack exchange,提问作者Meek

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.03 07:57:04