usebruno/bruno · error · Error

Collection: ${collectionPath} does not exist

Error message

Collection: ${collectionPath} does not exist

What it means

Error "Collection: ${collectionPath} does not exist" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-electron/src/ipc/collection.js:342

      }

      const { size, filesCount } = await getCollectionStats(dirPath);
      brunoConfig.size = size;
      brunoConfig.filesCount = filesCount;

      mainWindow.webContents.send('main:collection-opened', dirPath, uid, brunoConfig);
      ipcMain.emit('main:collection-opened', mainWindow, dirPath, uid, brunoConfig);
    }
  );

  // move an external collection into the workspace's directory
  ipcMain.handle(
    'renderer:move-collection-to-workspace',
    async (event, { workspacePath, collectionPath, collectionUid, collectionName }) => {
      validateWorkspacePath(workspacePath);

      if (!collectionPath || !isDirectory(collectionPath)) {
        throw new Error(`Collection: ${collectionPath} does not exist`);
      }

      // resolve a collision-free target folder inside `<workspace>/collections`
      const collectionsDir = path.join(workspacePath, 'collections');
      if (!fs.existsSync(collectionsDir)) {
        await createDirectory(collectionsDir);
      }

      let folderName = sanitizeName(path.basename(collectionPath));
      if (fs.existsSync(path.join(collectionsDir, folderName))) {
        const uniqueName = await findUniqueFolderName(folderName, collectionsDir);
        folderName = sanitizeName(uniqueName);
      }
      const newPath = path.join(collectionsDir, folderName);

      if (path.normalize(collectionPath) === path.normalize(newPath)) {
        throw new Error('Collection is already inside the workspace');
      }

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Verify the collection path exists and contains bruno.json or opencollection.yml.
  2. Fix the path and retry.

When it happens

Trigger: Thrown at packages/bruno-electron/src/ipc/collection.js:342 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13). Data as JSON: /api/errors/412b1f9edd898960. Report an issue: GitHub.