usebruno/bruno · error · Error

Unable to locate item

Error message

Unable to locate item

What it means

Error "Unable to locate item" thrown in usebruno/bruno.

Source

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

            toast.success('Item renamed successfully');
            resolve();
          })
          .catch((err) => reject(err));
      });
    };

export const cloneItem = (newName, newFilename, itemUid, collectionUid) => (dispatch, getState) => {
  const state = getState();
  const collection = findCollectionByUid(state.collections.collections, collectionUid);

  return new Promise((resolve, reject) => {
    if (!collection) {
      throw new Error('Collection not found');
    }
    const collectionCopy = cloneDeep(collection);
    const item = findItemInCollection(collectionCopy, itemUid);
    if (!item) {
      throw new Error('Unable to locate item');
    }

    if (isItemAFolder(item)) {
      const parentFolder = findParentItemInCollection(collection, item.uid) || collection;

      const folderWithSameNameExists = find(
        parentFolder.items,
        (i) => i.type === 'folder' && trim(i?.filename) === trim(newFilename)
      );

      if (folderWithSameNameExists) {
        return reject(new Error('Duplicate folder names under same parent folder are not allowed'));
      }

      set(item, 'name', newName);
      set(item, 'filename', newFilename);
      set(item, 'root.meta.name', newName);
      set(item, 'root.meta.seq', parentFolder?.items?.length + 1);

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Reload the collection to refresh the item tree.
  2. Confirm the item was not deleted or moved outside Bruno.

When it happens

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