Skip to content

Error: 403 Authentication failed for Muse Spark 1.3 Contributor #945

Open

Description

@iAziz786

Summary

I'm constantly seeing this intermittent issue of getting this error.

Expected Behavior

The model should work file with no errors.

Actual Behavior

Getting this error:

Error: 403 Authentication failed. Please check your credentials.
   Authentication failed. Please check your credentials. (type=permission_error)

Although I have active plan. It's happening again and again for some time then it started working.

Image

Steps to reproduce the issue

  1. Using the model normally it's happening often. No extra step needed.

Command Code Version

1.66.0

Operating System

macOS

Terminal/IDE

ghostty

Shell

zsh

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

OS: macOS Tahoe 26.7

Activity

  1. added theissue type on Sep 28, 2026
  2. iAziz786 commented on Sep 28, 2026

    @iAziz786
    Author

    Another user reported this from Discord:

    Image
  3. lee5312 commented on Sep 29, 2026

    @lee5312

    Controlled reproduction on 2026-09-29 (Provider API, meta/muse-spark-1.3-contributor):

    • The same unmodified Command Code API key returns 200 for gpt-5.6-sol from a Windows laptop, and 200 for Muse from an Azure host.
    • From the laptop, the documented /provider/v1/chat/completions endpoint intermittently returns 403 permission_error / Authentication failed. Please check your credentials. for Muse. One captured failure: x-trace-id: bcf923313633b31501ecc91270739d17, cf-ray: a42a5dce5f7e6131-HKG.
    • Cloudflare's client-side trace reports loc=KR for the laptop. Calls routed through NRT/KIX succeeded, while HKG calls failed; a DNS/IP pin did not reliably select a good edge.
    • The official Command Code CLI 1.66.0, using that same key on the same laptop with --no-session --model meta/muse-spark-1.3-contributor --print, returned OK immediately after the captured Provider API 403.
    • The API failures can persist across multiple bounded retries, so a one-off retry is insufficient. The response contains no actionable error code distinguishing an edge/routing failure from a region or account restriction.

    Could you inspect this trace and confirm the actual rejection reason, then fix the HKG Provider API route or its error mapping? No key or prompt data is included here.

  4. nerin81-netizen commented on Oct 16, 2026

    @nerin81-netizen

    Additional reproduction from Korea on 2026-10-16 (Provider API, GOAT plan). The edge correlation lee5312 described also hits Claude Haiku 5.5 and Claude Sonnet 5.5, not only Muse Spark.

    Setup: same unmodified API key, POST /provider/v1/messages (Anthropic Messages), max_tokens: 16, client loc=KR. Both Claude models are listed as included on the GOAT plan.

    Result (01:54-01:57 UTC, roughly one request every 2-4s):

    Model Edge (cf-ray suffix) Result
    claude-haiku-5-5 HKG 403 x16
    claude-sonnet-5-5 HKG 403 x16
    claude-haiku-5-5 NRT 200 x6
    claude-sonnet-5-5 NRT 200 x5

    Every HKG response was a failure and every NRT response was a success, with nothing else changed. The failure body is the credential-shaped error:

    403 {"type":"error","error":{"type":"permission_error","message":"Authentication failed. Please check your credentials."}}
    

    Captured failures (HKG):

    • claude-haiku-5-5: x-trace-id: 19a0059f0f5c8dfcc955b40afff00f69, cf-ray: a4b371219fed5dec-HKG (01:55:33 UTC)
    • claude-sonnet-5-5: x-trace-id: 56bed892ff189ffbebfde12d3257c840, cf-ray: a4b371241a135dec-HKG (01:55:33 UTC)
    • claude-haiku-5-5: x-trace-id: c2e1ea9527f679a8a11dbc82fcaf5fa9, cf-ray: a4b3713eaad309f4-HKG (01:55:37 UTC)

    Successes (NRT, same key, about 40s earlier):

    • claude-haiku-5-5: x-trace-id: 23cbb0b00203b85d4ef5b58fa4c2d70e, cf-ray: a4b3702a4f053018-NRT (01:54:54 UTC)
    • claude-sonnet-5-5: x-trace-id: 14e0d4306e0a9e72fd63c7721c10df59, cf-ray: a4b3703c7c813018-NRT (01:54:57 UTC)
    • meta/muse-spark-1.3: x-trace-id: 6a89f2f4524239212e0f1f9ebc66643b, cf-ray: a4b3704b5f263018-NRT (01:54:59 UTC)

    Controls in the same run: claude-opus-5-5 returns the correct MODEL_NOT_IN_PLAN (trace de0050fbfd358fbd2e7af0415ed410a5), and gpt-6-luna and deepseek/deepseek-v4.1-flash return 200. So the key and plan are valid.

    Impact: third-party agents that use the Provider API retry the 403 and then stop with a generic provider error. From Korea, these models fail whenever the request lands on HKG.

    Requests:

    1. Fix the HKG Provider API route for Anthropic models (and Muse).
    2. If this is an intended restriction, return a distinct error code instead of "Authentication failed".

    No key or prompt data is included.

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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions