{"record":{"id":"77a9ef96af1df5ef","repo":"usebruno/bruno","slug":"duplicate-request-names-are-not-allowed-under-the","errorCode":null,"errorMessage":"Duplicate request names are not allowed under the same folder","messagePattern":"Duplicate request names are not allowed under the same folder","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js","lineNumber":949,"sourceCode":"            throw new Error('Failed to rename the item name');\n          });\n        };\n\n        const renameFile = async () => {\n          const dirname = path.dirname(item.pathname);\n          let newPath = '';\n          if (item.type === 'folder') {\n            newPath = path.join(dirname, trim(newFilename));\n          } else {\n            const filename = resolveRequestFilename(newFilename, collection.format);\n            newPath = path.join(dirname, filename);\n          }\n\n          return ipcRenderer\n            .invoke('renderer:rename-item-filename', { oldPath: item.pathname, newPath, newName, newFilename, collectionPathname: collection.pathname })\n            .catch((err) => {\n              console.error(err);\n              throw new Error('Duplicate request names are not allowed under the same folder');\n            });\n        };\n\n        let renameOperation = null;\n        if (newName) renameOperation = renameName;\n        if (newFilename) renameOperation = renameFile;\n\n        if (!renameOperation) {\n          resolve();\n        }\n\n        renameOperation()\n          .then(() => {\n            toast.success('Item renamed successfully');\n            resolve();\n          })\n          .catch((err) => reject(err));\n      });","sourceCodeStart":931,"sourceCodeEnd":967,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js#L931-L967","documentation":"Error \"Duplicate request names are not allowed under the same folder\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:949 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename one of the conflicting requests so names are unique within the folder.","Move the request to a different folder if the name must stay."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}