{"record":{"id":"d9a8d684902ed9e8","repo":"usebruno/bruno","slug":"cannot-save-transient-request","errorCode":null,"errorMessage":"Cannot save transient request","messagePattern":"Cannot save transient request","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js","lineNumber":233,"sourceCode":"  if (!collection) {\n    throw new Error('Collection not found');\n  }\n\n  const collectionCopy = cloneDeep(collection);\n  const item = findItemInCollection(collectionCopy, itemUid);\n\n  // Item is not used to save the bru file\n  // This is to validate if the bru content is associated with a valid item\n  if (!item) {\n    throw new Error('Not able to locate item');\n  }\n\n  const isTransient = tempDirectory && item.pathname.startsWith(tempDirectory);\n  if (isTransient) {\n    if (!silent) {\n      dispatch(addSaveTransientRequestModal({ item, collection }));\n    }\n    throw new Error('Cannot save transient request');\n  }\n\n  const { ipcRenderer } = window;\n  try {\n    if (['http-request', 'graphql-request'].includes(item?.type)) {\n      let json = await ipcRenderer.invoke('renderer:convert-to-json', item, content, collection.format);\n      delete json.isTransient;\n      await itemSchema.validate(json);\n    }\n  } catch (err) {\n    if (!silent) {\n      toast.custom(<SaveFileErrorModal error={err.message} />);\n    }\n    throw err;\n  }\n\n  try {\n    await ipcRenderer.invoke('renderer:save-file', item.pathname, content);","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js#L215-L251","documentation":"Error \"Cannot save transient request\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Save the request inside a collection first; transient (unsaved) requests cannot be saved in place.","Duplicate the request into a collection, then save."],"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"}