deepseek-ai/deepseek-harness · error · Error
typert: endpoint " " is already registered
Error message
typert: ${this.kind} endpoint "${endpoint}" is already registered What it means
DescriptorStore validation found two invocation descriptors in the same batch (or one colliding with an already-registered entry) that project to the same RPC endpoint string in the local or remote table. The endpoint is the dispatch address, so a duplicate would make routing ambiguous.
Solutions
- Unregister the existing endpoint first or register under a different endpoint name.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/typert/registry/src/service.ts:127 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/25d1d37a64454588.
Report an issue: GitHub.
Appendix: source
Thrown at packages/typert/registry/src/service.ts:127
private readonly ids = new Map<string, DescriptorEntry>()
private readonly history = new Set<string>()
private readonly changes: ChangeSource
constructor(
private readonly kind: 'local' | 'remote',
report: ReportObserverError,
) {
this.changes = new ChangeSource(report)
}
validate(descriptors: readonly InvocationDescriptor[]): void {
const endpoints = new Set<string>()
const ids = new Set<string>()
for (const descriptor of descriptors) {
validateInvocation(descriptor)
const endpoint = typertEndpoint(descriptor)
if (endpoints.has(endpoint) || this.entries.has(endpoint)) {
throw new Error(`typert: ${this.kind} endpoint "${endpoint}" is already registered`)
}
if (ids.has(descriptor.id) || this.ids.has(descriptor.id)) {
throw new Error(`typert: ${this.kind} invocation id "${descriptor.id}" is already registered`)
}
endpoints.add(endpoint)
ids.add(descriptor.id)
}
}
commit(owner: object, descriptors: readonly InvocationDescriptor[]): void {
for (const descriptor of descriptors) {
const entry = { descriptor, owner }
const endpoint = typertEndpoint(descriptor)
this.entries.set(endpoint, entry)
this.ids.set(descriptor.id, entry)
this.history.add(endpoint)
}
for (const descriptor of descriptors) {View on GitHub (pinned to b150a551b8)