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
-
blocklist addition
難度 1/5 1 小時以內 新手友好度 76/100
MetaMask/eth-phishing-detect#319194 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
continuedev/continue#13533 · 1 則留言 ·
維護者通常 6 天內回覆
-
bug codex:automation
難度 2/5 1-3 小時 新手友好度 76/100
genfeedai/genfeed.ai#12060 ·
維護者通常 1 天內回覆
-
bounty good first issue help wanted
難度 2/5 1-3 小時 新手友好度 78/100
fitzss/valun-open#15 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆