Skip to content

[Bug] Alibaba CN endpoint: "console session required" error even with valid Coding Plan API key and Chrome cookies #598

@ShiqiMa

Description

@ShiqiMa

Bug: Alibaba CN endpoint always fails with "console session required" error

Environment

  • CodexBar version: 0.19.0
  • Gateway region: China mainland (bailian.console.aliyun.com)
  • Cookie source: Auto (Chrome Default)

Description

The Alibaba provider consistently fails to fetch quota with a valid sk-sp- Coding Plan API key and Chrome cookies cached. The error shown:

Alibaba Coding Plan API error: This Alibaba endpoint requires a console session for this account/region. API key mode may be unavailable in CN on this endpoint.

Steps to Reproduce

  1. Set Gateway region → China mainland
  2. Enter valid sk-sp-... API key
  3. Log in to bailian.console.aliyun.com in Chrome
  4. Click refresh → fetch fails

Expected Behavior

Quota fetched successfully via cached browser cookie, or a clear UI prompt to guide the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions