Skip to content

OpenAI OAuth 账号触发 401:Missing scope api.responses.write #3576

Description

@leozhengliu-pixel

问题描述

OpenAI OAuth 类型账号在调用时被标记为“临时不可调度状态”,错误信息显示当前凭证缺少 api.responses.write scope。手动恢复状态后可以短暂继续,但随后仍可能再次进入不可调度状态。

脱敏后的错误信息

OAuth 401: You have insufficient permissions for this operation. Missing scopes: api.responses.write. Check that you have the correct role in your organization (Reader, Writer, Owner) and project (Member, Owner), and if you're using a restricted API key, that it has the necessary scopes.

影响

  • OpenAI OAuth 账号会被判定为临时不可调度
  • 账号恢复后仍可能重复触发
  • 目前不确定是上游 OAuth scope/权限变更,还是请求被路由到了需要 Platform API responses.write 权限的接口

希望确认

  1. 当前 OpenAI OAuth 账号调用 Responses API 时,是否需要额外处理 api.responses.write scope?
  2. 如果 OAuth 账号不具备该 scope,是否应避免直接请求需要 Platform API scope 的 /v1/responses 路径,或在 sub2api 中做更明确的错误提示/降级处理?
  3. 是否可以在账号检测/错误分类里单独识别 Missing scopes: api.responses.write,避免和普通 401/token 失效混在一起?

隐私说明

截图中包含账号信息,因此这里没有上传截图,也没有提供任何 token、refresh token、账号邮箱或完整请求日志。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions