deepseek-ai/deepseek-harness · error · Error
client api: contribution repeats ${kind} method ${endpointOf
Error message
client api: contribution repeats ${kind} method ${endpointOf(descriptor)} What it means
Error "client api: contribution repeats ${kind} method ${endpointOf(descriptor)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/api/gateway/src/client/index.ts:220
throw error
}
return async () => {
for (const dispose of installed.reverse()) await dispose()
await disposeRemote()
}
}
private validateContribution(contribution: TypertRemoteContribution): void {
const direct = new Map<string, Set<string>>()
const scoped = new Map<string, Set<string>>()
const add = (
table: Map<string, Set<string>>,
descriptor: InvocationDescriptor,
kind: 'direct' | 'scoped',
): void => {
const methods = table.get(descriptor.namespace) ?? new Set<string>()
if (methods.has(descriptor.method)) {
throw new Error(`client api: contribution repeats ${kind} method ${endpointOf(descriptor)}`)
}
methods.add(descriptor.method)
table.set(descriptor.namespace, methods)
const namespace = this.namespaces.get(descriptor.namespace)?.service
if (namespace?.has(kind, descriptor.method) === true) {
throw new Error(`client api: ${kind} method ${endpointOf(descriptor)} is already mounted`)
}
}
for (const descriptor of contribution.descriptors) {
requireStrictDescriptor(descriptor)
if (descriptor.invocation.kind === 'direct') add(direct, descriptor, 'direct')
if (scopedProjection(descriptor) !== undefined) add(scoped, descriptor, 'scoped')
}
const namespaces = new Set([...direct.keys(), ...scoped.keys()])
for (const namespace of namespaces) {
const service = this.namespaces.get(namespace)?.service
if (service === undefined) {
if (namespace in this) {View on GitHub (pinned to b150a551b8)
Solutions
- Remove the duplicate contribution; each kind/endpoint method may be contributed only once.
When it happens
Trigger: Thrown at packages/api/gateway/src/client/index.ts:220 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/3a66b0e13e3ddac9.
Report an issue: GitHub.