auth status JSON reports a quota service failure as a rejected credential
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 47/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- bun, typescript
调研方向
Start at the auth status command in src/main.ts and trace how quota lookup errors and region detection affect JSON output, exit codes, and stderr. Reproduce the supplied cases with the Bun preload fetch stub, comparing HTTP 503 with HTTP 401 and the invalid key code 2049. Done when a quota outage is distinguishable from rejected credentials for a known region and the unknown region behavior is clarified.
由索引模型根据 Issue 内容生成。
描述
Reproduction
Tested against main at ae29aae57b05c2140c7ea6aba0a852763ffe7859.
From the repository root after installing its Bun dependencies, run the CLI
with an empty configuration directory, a synthetic key, and a fetch stub.
The stub makes no network requests.
config_dir=$(mktemp -d)
cat > "$config_dir/mock-usage.ts" <<'TS'
globalThis.fetch = async () => new Response(null, { status: 503 });
TS
MMX_CONFIG_DIR="$config_dir" CI=1 bun --preload "$config_dir/mock-usage.ts" \
src/main.ts auth status --output json --non-interactive \
--api-key test-api-key --region global
Actual behavior
The CLI exits with code 0 and reports authenticated: false with
Not authenticated. and a login hint. An explicit HTTP 401 and an HTTP 200
with the invalid-key code 2049 produce the same result. A successful usage
response produces the usual credential source, masked key, and usage record.
Omitting --region global sends the same simulated 503 through automatic
region detection. That path exits with code 1, leaves stdout empty, and
reports an inconclusive region on stderr.
Expected behavior
A quota service outage should be distinguishable from an explicit credential
rejection in machine-readable output. Should the CLI report an unavailable
quota lookup in the status JSON when the region is known? Should automatic
region detection keep its current stderr and exit-code behavior when the
region is unknown?
- 主要语言
- TypeScript
- 星标
- 2.2k
- 派生
- 200
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MiniMax-AI/cli 的其他 Issue
-
[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
MiniMax-AI/cli#259 · 1 条评论 ·
-
[Bug] --no-color 未去除请求状态栏的 ANSI 颜色可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
MiniMax-AI/cli#258 ·
-
难度 5/5 一周以上 新手友好度 34/100
MiniMax-AI/cli#312 ·
-
难度 4/5 3-5 天 新手友好度 15/100
MiniMax-AI/cli#287 ·
-
[Bug] 输入框默认提示文字(placeholder)未被清除,与实际输入内容重叠显示可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 63/100
MiniMax-AI/cli#278 ·
相似的 Issue
-
area:api bug good first issue priority:high
难度 2/5 1-3 小时 新手友好度 78/100
Doezer/Questarr#1486 · 1 条评论 ·
维护者通常 1 天内回复
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
难度 2/5 1-3 小时 新手友好度 88/100
Sergey-Bar/Penny#245 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Approve the Cloudflare agent plugin for harness sessions可能已有人在做 @joshtsch 今天认领。 未关闭enhancement ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复