Skip to content

[Bug]: MiniMax provider fails to fetch usage with web session (billing returns 500) #246

Closed

Description

@CarlosLongarela

Existing issues

  • I searched existing issues and did not find a duplicate.

What happened?

Description

MiniMax provider does not show usage information when using a Coding Plan web session.

I am using CodexBar 0.46.0 on Windows.

Environment

  • CodexBar version: 0.46.0
  • OS: Windows 11
  • Provider: MiniMax Global (platform.minimax.io)
  • Authentication method: Browser cookies / Coding Plan session

Steps to reproduce

  1. Open MiniMax in browser:
    https://platform.minimax.io/console/usage

  2. Confirm that the account usage page works correctly in the browser.

  3. In CodexBar:

    • Select MiniMax provider
    • Set Region: Global (platform.minimax.io)
    • Set Cookie source: Manual
    • Import browser cookies
  4. Click "Update".

Expected behavior

CodexBar should display the MiniMax Coding Plan usage/quota.

Actual behavior

CodexBar returns:

MiniMax billing returned status 500 Internal Server Error

Additional information

  • Browser session works correctly.
  • MiniMax usage page loads correctly.
  • Cookies are imported successfully.
  • Automatic cookie mode does not use the browser session and instead falls back to API authentication:

Provider not installed: MiniMax API not configured. Set MINIMAX_API_KEY and MINIMAX_GROUP_ID environment variables

  • Switching region to China results in:

404 Not Found

which seems expected because the account is Global.

Browser network information

The MiniMax usage page loads successfully and makes requests such as:

GET https://platform.minimax.io/console/usage
GET https://platform.minimax.io/v1/api/openplatform/charge/combo/cycle_audio_resource_package
?biz_line=2
&cycle_type=1
&resource_package_type=7

Could the MiniMax billing/usage endpoint used by CodexBar need updating?

Thanks!

Affected area

  • Tray panel
  • Settings UI
  • Config file / settings persistence
  • CLI
  • Provider-specific behavior
  • Installer / release packaging
  • Startup / background behavior
  • Other

Steps to reproduce

  1. Open MiniMax in browser:
    https://platform.minimax.io/console/usage

  2. Confirm that the account usage page works correctly in the browser.

  3. In CodexBar:

    • Select MiniMax provider
    • Set Region: Global (platform.minimax.io)
    • Set Cookie source: Manual
    • Import browser cookies
  4. Click "Update".

Expected behavior

CodexBar should display the MiniMax Coding Plan usage/quota.

Actual behavior

CodexBar returns:

MiniMax billing returned status 500 Internal Server Error

Logs, screenshots, or recordings


App version

v0.46.0

Windows version

Windows 11

Additional context

Image

Activity

  1. added
    bug
    on Aug 1, 2026
  2. Finesssee commented on Aug 1, 2026

    @Finesssee
    Collaborator

    Thanks for the issue, I will fix this ASAP

  3. pure-alexchu commented on Aug 3, 2026

    @pure-alexchu
    Image

    Have similar issue with cursor

  4. Finesssee commented on Aug 4, 2026

    @Finesssee
    Collaborator

    Fixed in PR: #250. Root cause: the cookie/web path used only the billing-history endpoint, which 500s for coding-plan accounts. The fetch now goes through the coding-plan page with a remains-API fallback, and billing history is best-effort enrichment, so its 500 can no longer kill the fetch. Auto/Web modes also fall back to browser cookies when no manual cookie is set. After the next release, please verify with the tray Update button or codexbar usage --provider minimax --source web and report back here.

  5. added a commit that references this issue on Aug 4, 2026
    8ca7b07
  6. CarlosLongarela commented on Aug 4, 2026

    @CarlosLongarela
    Author

    CodexBar 0.47.0 still cannot detect MiniMax Coding Plan subscription.

    My MiniMax account has an active plan:

    current_subscribe_title: Yearly Plus
    current_subscribe_end_time: 07/07/2027

    The MiniMax web console works correctly:
    https://platform.minimax.io/console/usage?cycle_type=3

    The API response shows:

    current_combo_card:
    title: Plus
    button_text: Current

    But CodexBar returns:

    no active token plan subscription

    Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions