paperclipai/paperclip · error
Attachment exceeds ${attachmentMaxBytes} bytes
Error message
Attachment exceeds ${attachmentMaxBytes} bytes What it means
422 from issue attachment upload. Fires when multer rejects the file because its size exceeds the company's attachment limit (attachmentMaxBytes, normalized default); multer's LIMIT_FILE_SIZE is translated into this message.
Source
Thrown at server/src/routes/issues.ts:13666
res.status(403).json({ error: "Only board users can view feedback trace bundles" });
return;
}
const bundle = await feedback.getFeedbackTraceBundle(traceId);
if (!bundle || !actorCanAccessCompany(req, bundle.companyId)) {
res.status(404).json({ error: "Feedback trace not found" });
return;
}
res.json(bundle);
});
router.post("/issues/:id/comments", validate(addIssueCommentSchema), async (req, res) => {
const id = req.params.id as string;
const issue = await getAccessibleResource(req, res, svc.getById(id), "Issue not found");
if (!issue) return;
if (req.actor.type === "agent" && req.body.onBehalfOfUserId != null) {
await auditAgentIssueCommentAttributionSpoof({
db,
req,
issue,
surface: "issue.comment.create",
requestedValue: readNonEmptyString(req.body.onBehalfOfUserId),
});
await denyIssueWrite(req, res, issue, "issue_write_attribution_spoof_rejected");
return;
}
const commentAccessDecision = await assertAgentIssueCommentAllowed(req, res, issue);
if (!commentAccessDecision) return;
const commentAuthorizationReason = issueWriteAuthorizationReason(req, commentAccessDecision);
if (!assertStructuredCommentFieldsAllowed(req, res, {
presentation: req.body.presentation,
metadata: req.body.metadata,
})) return;
const closedExecutionWorkspace = await getClosedIssueExecutionWorkspace(issue);
const actor = getActorInfo(req);
const commentPresentation = req.body.presentation ??View on GitHub (pinned to 01ad858492)
Solutions
- Fix the offending parameter to satisfy the constraint stated in the error message (type, range, or allowed values), then retry.
- Refer to the route's request validation in the named file and the shared validators for the accepted format.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/src/routes/issues.ts:12647 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18).
Data as JSON: /api/errors/11e34d3d5b42044f.
Report an issue: GitHub.