usebruno/bruno · error · Error

Collection not found

Error message

Collection not found

What it means

Error "Collection not found" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:216

            collectionUid
          })
        );
      })
      .then(resolve)
      .catch((err) => {
        toast.error(err.message || 'Failed to save request!');
        reject(err);
      });
  });
};

export const saveFile = (content, itemUid, collectionUid, silent = false) => async (dispatch, getState) => {
  const state = getState();
  const collection = findCollectionByUid(state.collections.collections, collectionUid);
  const tempDirectory = state.collections.tempDirectories?.[collectionUid];

  if (!collection) {
    throw new Error('Collection not found');
  }

  const collectionCopy = cloneDeep(collection);
  const item = findItemInCollection(collectionCopy, itemUid);

  // Item is not used to save the bru file
  // This is to validate if the bru content is associated with a valid item
  if (!item) {
    throw new Error('Not able to locate item');
  }

  const isTransient = tempDirectory && item.pathname.startsWith(tempDirectory);
  if (isTransient) {
    if (!silent) {
      dispatch(addSaveTransientRequestModal({ item, collection }));
    }
    throw new Error('Cannot save transient request');
  }

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Reload the workspace; the collection may have been removed from disk.
  2. Verify the collection path still exists on the filesystem.

When it happens

Trigger: Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:216 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/80f3c706403c9f28. Report an issue: GitHub.