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

使用gactions上传Action包时遇Access blocked授权错误求助

解决Gactions CLI授权报错"Access blocked: Assistant CLI’s request is invalid"的方案

具体修复步骤

  • 更新CLI到最新版本
    旧版本CLI可能存在OAuth协议适配问题,先检查当前版本:

    gactions --version
    

    若不是最新,前往Google官方渠道下载替换最新版。

  • 完善OAuth consent screen配置

    • 登录Google Cloud Console,找到对应项目的OAuth consent screen页面,将类型设置为外部(内部类型仅支持同域账号)。
    • 确保用于授权的邮箱已添加到测试用户列表并保存。
    • 检查已添加的scope,必须包含https://www.googleapis.com/auth/actions.test,缺失则补充后保存。
  • 调整授权命令参数

    • 先执行初始化命令生成本地凭据文件:
      gactions init
      
      按提示完成浏览器授权,生成credentials.json后,再执行测试命令:
      gactions test --action_package action.json --project my-project-381534 --oauth_credential_file credentials.json
      
    • 若仍报错,排查本地代理或防火墙是否拦截了CLI的网络请求,暂时关闭后重试授权。
  • 验证项目权限
    确认当前Google账号拥有该项目的Actions Developer或Owner角色,进入Google Cloud Console的IAM页面查看并调整权限。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.27 12:42:06