Skip to content

ZCode plan models unusable: POST api.z.ai/api/auth/z/login returns 500 "Z.ai user information is invalid" for every credential issued by the login itself (1024 Dev Day promo active but 0 requests served) #1180

Open

Description

@AUTENTK-EU

Environment

  • ZCode Desktop + zcode-app-cli 0.16.9, macOS arm64 (Apple Silicon), Europe/Italy, 2026-10-23
  • Account: [email protected] (chat user 13893d5c-8907-461c-bf04-ec8359fdf84a)

What works

  • zcode login zai completes: "Login successful as Luca", credentials refreshed (zcodejwttoken iat 2026-10-23T18:05:33Z)
  • GET https://zcode.z.ai/api/v1/zcode-plan/billing/current shows the promo plan active:
    zcode-v3-start-plan-1024 («ZCode 1024 Dev Day», 300M glm-5.3-flash + 200M glm-5.3, one_time, expires Oct 26 02:00)
  • The Start Plan card with token balance renders correctly in Model Settings

What fails

Every model request on z.ai family providers (account:zai-start-plan, account:zai-individual-coding-plan) fails with:

ClientRequestSigningV4Error → project_token_login_failed
[project-access-token] { family: 'zai', stage: 'resolve', code: 'project_token_login_failed' }

The engine mints the required project access token via:

POST https://api.z.ai/api/auth/z/login   body: {"token": "<accessToken>"}
→ 200 {"code":500,"msg":"Z.ai user information is invalid","logid":"20261023180733a7b6870ea5fdf22cd36"}

Tested: the same call returns the identical 500 with (a) the OAuth access token saved by a fresh login, (b) the fresh zcode JWT, (c) every API key of the account. Unsigned calls to zcode.z.ai/api/v1/zcode-plan/anthropic/v1/messages are blocked (405 {"code":3012,"msg":"request has been blocked due to unusual activity"}), so the mint is mandatory — there is no fallback path.

Result

Zero successful plan-model requests today across ZCode Desktop and CLI (200+ failed attempts logged machine-wide, model.network.failed entries on both api.z.ai/api/anthropic and zcode.z.ai/api/v1/zcode-plan/anthropic). The promo grant expires Oct 26 02:00 and cannot be used at all.

Notes

Activity

  1. github-actions commented on Oct 23, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者看到后会尽快回复你。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will get back to you as soon as we can.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
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

    priority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions