Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions