usebruno/bruno · error · Error

Failed to rename the item name

Error message

Failed to rename the item name

What it means

Error "Failed to rename the item name" thrown in usebruno/bruno.

Source

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

      return new Promise((resolve, reject) => {
        if (!collection) {
          return reject(new Error('Collection not found'));
        }

        const collectionCopy = cloneDeep(collection);
        const item = findItemInCollection(collectionCopy, itemUid);
        if (!item) {
          return reject(new Error('Unable to locate item'));
        }

        const { ipcRenderer } = window;

        const renameName = async () => {
          return ipcRenderer.invoke('renderer:rename-item-name', { itemPath: item.pathname, newName, collectionPathname: collection.pathname }).catch((err) => {
            toast.error('Failed to rename the item name');
            console.error(err);
            throw new Error('Failed to rename the item name');
          });
        };

        const renameFile = async () => {
          const dirname = path.dirname(item.pathname);
          let newPath = '';
          if (item.type === 'folder') {
            newPath = path.join(dirname, trim(newFilename));
          } else {
            const filename = resolveRequestFilename(newFilename, collection.format);
            newPath = path.join(dirname, filename);
          }

          return ipcRenderer
            .invoke('renderer:rename-item-filename', { oldPath: item.pathname, newPath, newName, newFilename, collectionPathname: collection.pathname })
            .catch((err) => {
              console.error(err);
              throw new Error('Duplicate request names are not allowed under the same folder');

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Choose a different name that does not conflict with existing items.
  2. Check you have write permission to the item's file on disk.

When it happens

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