auth status JSON reports a quota service failure as a rejected credential
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 47/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- bun, typescript
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- TypeScript
- Estrelas
- 2.2k
- Forks
- 200
- Merge médio
- 1d 5h
- PRs com merge (30d)
- 3
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MiniMax-AI/cli
-
[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
MiniMax-AI/cli#259 · 1 comentário ·
-
[Bug] --no-color 未去除请求状态栏的 ANSI 颜色Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
MiniMax-AI/cli#258 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 34/100
MiniMax-AI/cli#312 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 15/100
MiniMax-AI/cli#287 ·
-
[Bug] 输入框默认提示文字(placeholder)未被清除,与实际输入内容重叠显示Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 63/100
MiniMax-AI/cli#278 ·
Todas as issues de MiniMax-AI/cli
Issues semelhantes
-
area:api bug good first issue priority:high
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Doezer/Questarr#1486 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Sergey-Bar/Penny#245 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
mihazs/lazysh#3377 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Approve the Cloudflare agent plugin for harness sessionsTalvez já em andamento @joshtsch assumiu hoje. Abertaenhancement ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia