{"record":{"id":"93c74ba6c21aa569","repo":"paperclipai/paperclip","slug":"feedback-trace-upload-failed-with-http-response","errorCode":null,"errorMessage":"Feedback trace upload failed with HTTP ${response.status}","messagePattern":"Feedback trace upload failed with HTTP (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/services/feedback-share-client.ts","lineNumber":48,"sourceCode":"        objectKey,\n        exportedAt: exportedAt.toISOString(),\n        bundle,\n      });\n      const response = await fetch(endpoint, {\n        method: \"POST\",\n        headers: {\n          \"content-type\": \"application/json\",\n          ...(token ? { authorization: `Bearer ${token}` } : {}),\n        },\n        body: JSON.stringify({\n          encoding: \"gzip+base64+json\",\n          payload: gzipSync(requestBody).toString(\"base64\"),\n        }),\n      });\n\n      if (!response.ok) {\n        const detail = await response.text().catch(() => \"\");\n        throw new Error(detail.trim() || `Feedback trace upload failed with HTTP ${response.status}`);\n      }\n\n      const payload = await response.json().catch(() => null) as { objectKey?: unknown } | null;\n      return {\n        objectKey: typeof payload?.objectKey === \"string\" && payload.objectKey.trim().length > 0\n          ? payload.objectKey\n          : objectKey,\n      };\n    },\n  };\n}\n","sourceCodeStart":30,"sourceCodeEnd":60,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/services/feedback-share-client.ts#L30-L60","documentation":"Upload failure in uploadTraceBundle: the POST of the gzipped feedback trace to the endpoint returned a non-2xx status. The HTTP status is embedded (the upstream body text is preferred as detail when available) so the failure can be distinguished from network errors.","triggerScenarios":"Thrown at server/src/services/feedback-share-client.ts:48 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network access to the feedback endpoint and retry; inspect the HTTP status in the message for the cause."],"exampleFix":null,"handlingStrategy":"try-catch","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-14T05:17:10.506Z"}