diegosouzapw/OmniRoute · error · Error

Obsidian vault not found at: ${this.vaultPath}

Error message

Obsidian vault not found at: ${this.vaultPath}

What it means

Error "Obsidian vault not found at: ${this.vaultPath}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/memory/obsidianBackend.ts:40

  readonly displayName = "Obsidian Vault";
  // isPrimary is managed by MemoryManager, not the backend itself

  private vaultPath: string;
  private initialized = false;

  constructor(vaultPath: string) {
    this.vaultPath = vaultPath;
  }

  async initialize(): Promise<void> {
    // Verify vault path exists
    const fs = await import("fs/promises");
    try {
      await fs.access(this.vaultPath);
      this.initialized = true;
      log.info("obsidian.backend.initialized", { vaultPath: this.vaultPath });
    } catch {
      throw new Error(`Obsidian vault not found at: ${this.vaultPath}`);
    }
  }

  async shutdown(): Promise<void> {
    this.initialized = false;
    log.info("obsidian.backend.shutdown");
  }

  async create(input: CreateMemoryInput): Promise<Memory> {
    if (!this.initialized) await this.initialize();

    const fs = await import("fs/promises");
    const path = await import("path");

    const id = crypto.randomUUID();
    const fileName = `${input.key}.md`;
    const filePath = path.join(this.vaultPath, fileName);

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/memory/obsidianBackend.ts:40 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/1a9f3f3ae575c366. Report an issue: GitHub.