{"record":{"id":"85cb6470d4c79cb3","repo":"paperclipai/paperclip","slug":"feedback-trace-bundle-traceid-not-found","errorCode":null,"errorMessage":"Feedback trace bundle ${traceId} not found","messagePattern":"Feedback trace bundle (.+?) not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/feedback.ts","lineNumber":265,"sourceCode":"export async function fetchCompanyFeedbackTraces(\n  ctx: ResolvedClientContext,\n  companyId: string,\n  opts: FeedbackFilterOptions,\n): Promise<FeedbackTrace[]> {\n  return (\n    (await ctx.api.get<FeedbackTrace[]>(\n      `${apiPath`/api/companies/${companyId}/feedback-traces`}${buildFeedbackTraceQuery(opts, true)}`,\n    )) ?? []\n  );\n}\n\nexport async function fetchFeedbackTraceBundle(\n  ctx: ResolvedClientContext,\n  traceId: string,\n): Promise<FeedbackTraceBundle> {\n  const bundle = await ctx.api.get<FeedbackTraceBundle>(apiPath`/api/feedback-traces/${traceId}/bundle`);\n  if (!bundle) {\n    throw new Error(`Feedback trace bundle ${traceId} not found`);\n  }\n  return bundle;\n}\n\nexport function summarizeFeedbackTraces(traces: FeedbackTrace[]): FeedbackSummary {\n  const statuses: Record<string, number> = {};\n  let thumbsUp = 0;\n  let thumbsDown = 0;\n  let withReason = 0;\n\n  for (const trace of traces) {\n    if (trace.vote === \"up\") thumbsUp += 1;\n    if (trace.vote === \"down\") thumbsDown += 1;\n    if (readFeedbackReason(trace)) withReason += 1;\n    statuses[trace.status] = (statuses[trace.status] ?? 0) + 1;\n  }\n\n  return {","sourceCodeStart":247,"sourceCodeEnd":283,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/feedback.ts#L247-L283","documentation":"fetchFeedbackTraceBundle's GET for the trace bundle resolved null (not found), so there is no bundle to export or display for that trace id.","triggerScenarios":"Thrown at cli/src/commands/client/feedback.ts:265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the trace ID and company; list available feedback trace bundles first."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}