deepseek-ai/deepseek-harness · error · Error

client api: ${endpoint} rejected ${JSON.stringify(field)}

Error message

client api: ${endpoint} rejected ${JSON.stringify(field)}

What it means

Error "client api: ${endpoint} rejected ${JSON.stringify(field)}" thrown in deepseek-ai/deepseek-harness.

Source

Thrown at packages/api/gateway/src/client/index.ts:618

  if (descriptor.invocation.kind === 'context') {
    requireStrictCodec(descriptor.invocation.codec, endpoint, descriptor.invocation.wire)
  }
}

function requireStrictCodec(codec: TypertCodec, endpoint: string, field: string): void {
  if (codec.mode !== 'strict') {
    throw new Error(`client api: generated Remote ${endpoint} field ${JSON.stringify(field)} has no strict codec`)
  }
}

function parse(codec: TypertCodec, value: unknown, endpoint: string, field: string): unknown {
  if (codec.mode !== 'strict') {
    throw new Error(`client api: generated Remote ${endpoint} field ${JSON.stringify(field)} has no strict codec`)
  }
  try {
    return codec.schema.parse(value)
  } catch (cause) {
    throw new Error(`client api: ${endpoint} rejected ${JSON.stringify(field)}`, { cause })
  }
}

/** The namespace retired before or during the call, so no request outcome exists. */
function withdrawn(endpoint: string): RemoteResult<never> {
  return internalFailure(`client api: Remote method ${endpoint} is no longer mounted`)
}

function carrierFailure(endpoint: string, error: unknown): RemoteResult<never> {
  return internalFailure(`client api: ${endpoint} failed: ${error instanceof Error ? error.message : String(error)}`)
}

function internalFailure(message: string): RemoteResult<never> {
  return { ok: false, error: { code: 'internal', message, details: {} } }
}

View on GitHub (pinned to b150a551b8)

Solutions

  1. Fix the argument value so the field passes the endpoint validation.

When it happens

Trigger: Thrown at packages/api/gateway/src/client/index.ts:618 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/26525573c6b60c84. Report an issue: GitHub.