Skip to content

Test script: error, no result returned - cc-switch

Quick fix

MiniMax changed the balance query API response shape, breaking the old parser. Upgrade cc-switch to v3.16.2+, or use a custom template for now.

Error output
测试脚本:报错未返回结果
English translation

Test script: error, no result returned

MiniMax changed the response shape of the /v1/api/openplatform/coding_plan/remains endpoint. The old endpoint returned real values for current_interval_total_count and current_interval_usage_count; on the new one both are always 0, and it returns current_interval_remaining_percent (the remaining percentage) instead.

That left the built-in Token Plan default parser in cc-switch v3.16.1 and earlier unable to extract the data, so the UI shows blank or reports no result. Fixed in v3.16.2 by adapting to the new endpoint, filtering out non-coding models, and handling plans with no weekly quota.

  1. Upgrade cc-switch to v3.16.2 or newer, which merged PR #3518 and carries built-in support for the new MiniMax balance query endpoint.

  2. If you cannot upgrade yet, change the usage query method to a custom template in the MiniMax provider config in cc-switch, and paste in the community parsing script as a stopgap around the broken official template.

Toolcc-switch
Version<= 3.16.1 (修复于 3.16.2)
PlatformsWindowsmacOSLinux
After upgrading to v3.16.2, MiniMax usage shows 100% while I can still use it. What is going on?
That is a display logic flaw that appeared after v3.16.2 adapted to the new endpoint (Issue #3955). Your quota is not actually exhausted — wait for a later fix, or use a custom template.
The {{apiKey}} variable in my custom template is not replaced with the real key. What now?
If variable substitution fails, put your API key directly into the Authorization header of the custom template for now (Bearer <your apikey>) as a stopgap.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.