clockworklabs/SpacetimeDB · error · TypeError
HTTP route for path '${route.path}' refers to a handler that
Error message
HTTP route for path '${route.path}' refers to a handler that was not exported. What it means
Error "HTTP route for path '${route.path}' refers to a handler that was not exported." thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/bindings-typescript/src/server/schema.ts:211
throw new TypeError(
`Table ${tableName} defines multiple schedules: ${existingFunctionName} and ${functionName}. A schedule table can only be used by one reducer or procedure.`
);
}
scheduledTables.set(tableName, functionName);
this.moduleDef.schedules.push({
sourceName: undefined,
tableName,
scheduleAtCol,
functionName,
});
}
}
resolveHttpRoutes() {
for (const route of this.pendingHttpRoutes) {
const handlerFunction = this.httpHandlerExports.get(route.handler);
if (handlerFunction === undefined) {
throw new TypeError(
`HTTP route for path '${route.path}' refers to a handler that was not exported.`
);
}
this.moduleDef.httpRoutes.push({
handlerFunction,
method: route.method,
path: route.path,
});
}
}
}
type PendingSchedule = {
table: UntypedTableSchema;
tableName?: string;
scheduleAtCol?: number;
reducer?: () => UntypedScheduledFunctionExport;
functionName?: string;View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/bindings-typescript/src/server/schema.ts:211 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/04de59dd5e0defaa.
Report an issue: GitHub.