Files
yetone 24da52b8ca minimax 0.2.3: a China-site account call agent.minimaxi.com can't be reached goes once to agent.minimax.cn (#757)
youyo.p_10001 (Discord #feedback, Windows 11, magpie 0.1.2993): every
China-site account call to agent.minimaxi.com (usage, check-in, account,
membership) failed in magpie's plugin host with "unable to get issuer
certificate" for ~16h, while chats on agent.minimax.cn worked. They
checked that agent.minimax.cn serves the same account API with the same
tokens and answers.

accountCall now sends a call to site.agent once more to the site's
agentFallback (China: https://agent.minimax.cn) only when the fetch got
no HTTP answer: a TLS error, a refused/reset connection, a name that
didn't resolve. A 401/403, any other status, a statusInfo/base_resp error,
a redirect to another site (OtherSite) and a timeout or abort are the
answer and are never sent twice. Both attempts share the one 15s
deadline. When both hosts fail, the error names both hosts and why. The
international site has no fallback.

Tests (fallback.test.mjs): agent.minimaxi.com is played by a TLS server
serving a leaf issued by an intermediate the client never saw
(testdata/leaf.pem, generated for the test), so its fetch fails as the
reporter's did; agent.minimax.cn by the fake. The usage card and the
check-in claim go through the fallback; a 401, 404, 502, base_resp error
and a 307 to another site are not sent to the fallback; both hosts
failing names both; the global site doesn't fall back.

Run:
- mote (Bun 1.4.2): HOME=$(mktemp -d) bun test at the repo root: 5942
  pass, 19 skip, 0 fail. bun scripts/check.mjs: registry.json and minimax
  ok.
- xiaomi-gpu Windows 11 (win-run, Bun 1.4.2): fallback.test.mjs 9/9.
- Broken by hand on mote: no fallback at all -> card, check-in and
  both-fail tests red; falling back on any non-ok status -> 401/404/502
  red; falling back on OtherSite and on a body error -> redirect and
  business-error red.

Not tried: no MiniMax China-site tokens here, so no real call to
agent.minimax.cn's account API; that it answers the same is the
reporter's check. The reporter's own Bun 1.4.4 was not run.
2026-11-05 16:41:17 +08:00

29 lines
1.7 KiB
Plaintext

-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCHN+ABr888cmyc
ESly+fNqhpPi0PXnJ031LVC11KaC8qa31JWc9+EMho9mXkJ0Vn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