diegosouzapw/OmniRoute · error · Error
Cannot connect to at
Error message
Cannot connect to ${this.displayName} at ${this.config.baseUrl}: ${healthy.error} What it means
GenericBackend.initialize ran its health() probe and it failed; the embedded message and baseUrl identify why the generic memory backend (e.g. an OpenWebUI-compatible store) is unreachable at init time.
Solutions
- Verify the service is running at baseUrl and reachable from OmniRoute
- Fix auth/timeout config if healthy.error indicates 401/timeout
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/memory/genericBackend.ts:154 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/44fd9a5b7037a8c5.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/memory/genericBackend.ts:154
readonly id: string;
readonly displayName: string;
private config: GenericBackendConfig;
private initialized = false;
constructor(id: string, displayName: string, config: GenericBackendConfig) {
this.id = id;
this.displayName = displayName;
this.config = {
timeout: 30000,
...config,
};
}
async initialize(): Promise<void> {
const healthy = await this.health();
if (!healthy.ok) {
throw new Error(
`Cannot connect to ${this.displayName} at ${this.config.baseUrl}: ${healthy.error}`
);
}
this.initialized = true;
log.info("generic.backend.initialized", { id: this.id, baseUrl: this.config.baseUrl });
}
private getEndpoints() {
return {
search: this.config.endpoints?.search ?? "/memories/search",
create: this.config.endpoints?.create ?? "/memories",
list: this.config.endpoints?.list ?? "/memories",
get: this.config.endpoints?.get ?? "/memories/{id}",
update: this.config.endpoints?.update ?? "/memories/{id}",
delete: this.config.endpoints?.delete ?? "/memories/{id}",
health: this.config.endpoints?.health ?? "/health",
};
}View on GitHub (pinned to a179ffed5b)