deepseek-ai/deepseek-harness · error · TypertGatewayError
ambiguous-endpoint
ambiguous-endpoint
Error message
multiple active Services export this endpoint: ${candidates.map(candidate => candidate.service).sort().join(", ")} What it means
Error "multiple active Services export this endpoint: ${candidates.map(candidate => candidate.service).sort().join(", ")}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/api/gateway/src/index.ts:256
const candidates: InvocationDescriptor[] = []
for (const [serviceKey, definition] of Object.entries(this.ctx.reflect.props)) {
if (definition.type !== 'service') continue
const receiver = this.ctx.get(serviceKey) as unknown
if (!isObject(receiver)) continue
const original = originalOf(receiver)
const value = Reflect.get(original, 'typertRemote') as unknown
if (value === undefined) continue
const binding = readBinding(value, original, serviceKey, endpoint)
if (binding.namespace !== namespace) continue
const marker = remoteMethods(original).find(candidate => (candidate.exportName ?? candidate.method) === method)
if (marker === undefined) continue
candidates.push(this.srcDescriptor(binding, marker, method, endpoint))
}
if (candidates.length === 0) {
throw new TypertGatewayError('invocation-unavailable', endpoint, 'no active Remote method exports this endpoint')
}
if (candidates.length > 1) {
throw new TypertGatewayError(
'ambiguous-endpoint',
endpoint,
`multiple active Services export this endpoint: ${candidates.map(candidate => candidate.service).sort().join(', ')}`,
)
}
return candidates[0] as InvocationDescriptor
}
private srcDescriptor(
binding: TypertGatewayBinding,
marker: ReturnType<typeof remoteMethods>[number],
method: string,
endpoint: string,
): InvocationDescriptor {
const names = methodParameterNames(binding.service, marker.method, endpoint)
const signalIndex = names.indexOf('signal')
if (signalIndex >= 0 && signalIndex !== names.length - 1) {
throw new TypertGatewayError(View on GitHub (pinned to b150a551b8)
Solutions
- Deactivate all but one Service exporting the endpoint, or qualify the call with an explicit service.
When it happens
Trigger: Thrown at packages/api/gateway/src/index.ts:256 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/61116ceb38256d1c.
Report an issue: GitHub.