{"record":{"id":"88f4af3b0d482d50","repo":"usebruno/bruno","slug":"item-is-not-a-request-pathname","errorCode":null,"errorMessage":"Item is not a request: ${pathname}","messagePattern":"Item is not a request: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/components/CollectionApp/index.js","lineNumber":227,"sourceCode":"    [dispatch, item.uid, collection.uid]\n  );\n  const onSave = useCallback(\n    () => dispatch(saveRequest(item.uid, collection.uid)),\n    [dispatch, item.uid, collection.uid]\n  );\n\n  // Execute a single request by its pathname (returned earlier from listRequests).\n  // Mirrors AppView.handleSendRequest: mints a requestUid, registers the run, merges\n  // overrides into runtime variables, sends, and dispatches responseReceived so the\n  // request's normal Response pane updates too.\n  const runRequestByPath = useCallback(\n    async (pathname, options) => {\n      const target = findItemInCollectionByPathname(collection, pathname);\n      if (!target) {\n        throw new Error(`Request not found: ${pathname}`);\n      }\n      if (!isItemARequest(target)) {\n        throw new Error(`Item is not a request: ${pathname}`);\n      }\n\n      const requestUid = uuid();\n      const requestItem = cloneDeep(target.draft || target);\n      requestItem.requestUid = requestUid;\n      dispatch(\n        initRunRequestEvent({ requestUid, itemUid: target.uid, collectionUid: collection.uid })\n      );\n\n      const runtimeOverrides\n        = options && typeof options.runtimeVariables === 'object' && options.runtimeVariables\n          ? options.runtimeVariables\n          : {};\n      const mergedRuntime = {\n        ...(collection.runtimeVariables || {}),\n        ...runtimeOverrides\n      };\n","sourceCodeStart":209,"sourceCodeEnd":245,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/components/CollectionApp/index.js#L209-L245","documentation":"Error \"Item is not a request: ${pathname}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/components/CollectionApp/index.js:227 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select a request item instead of a folder; this action only applies to requests.","Check the item type in the sidebar before running the action."],"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"}