deepseek-ai/deepseek-harness · error

typert: invalid " " — must be nonempty and must not contain…

Error message

typert: invalid ${subject} "${value}" — must be nonempty and must not contain "#"

What it means

Generic wire-name validation guard from validateSegment: the named subject (an RPC endpoint segment such as a service or method name) is empty or contains '#', which cannot appear in an RPC endpoint segment. Fires when a descriptor declares a name usable only as a whole identifier, not as a wire segment.

Solutions

  1. Use a nonempty value without "#" characters.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/typert/registry/src/service.ts:713 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/8eba076482dcc860. Report an issue: GitHub.

Appendix: source

Thrown at packages/typert/registry/src/service.ts:713

}

function validateCodec(codec: InvocationDescriptor['result'], subject: string): void {
  if (codec.mode === 'src-json') return
  validateNonempty(`${subject} type symbol`, codec.typeSymbol)
  if (typeof codec.schema.parse !== 'function') {
    throw new Error(`typert: ${subject} strict codec has no parse() method`)
  }
}

function validateWireName(subject: string, value: string): void {
  if (value === '.' || value === '..' || !/^[A-Za-z0-9_$.-]+$/.test(value)) {
    throw new Error(`typert: invalid ${subject} "${value}" — must contain only RPC endpoint segment characters`)
  }
}

function validateSegment(subject: string, value: string): void {
  if (value.length === 0 || value.includes('#')) {
    throw new Error(`typert: invalid ${subject} "${value}" — must be nonempty and must not contain "#"`)
  }
}

function validateNonempty(subject: string, value: string): void {
  if (value.length === 0) throw new Error(`typert: invalid ${subject} — must be nonempty`)
}

export default TypertRegistry

View on GitHub (pinned to b150a551b8)