paperclipai/paperclip · error

issues/count does not accept limit or offset

Error message

issues/count does not accept limit or offset

What it means

400 from the issue count route: limit or offset query parameters were supplied, but the count endpoint performs no pagination and rejects both.

Source

Thrown at server/src/routes/issues.ts:6388

      companyId: workspace.companyId,
      projectId: workspace.projectId,
      name: workspace.name,
      sourceType: workspace.sourceType,
      cwd: workspace.cwd,
      repoUrl: workspace.repoUrl,
      repoRef: workspace.repoRef,
      defaultRef: workspace.defaultRef,
      visibility: workspace.visibility,
      setupCommand: workspace.setupCommand,
      cleanupCommand: workspace.cleanupCommand,
      remoteProvider: workspace.remoteProvider,
      remoteWorkspaceRef: workspace.remoteWorkspaceRef,
      sharedWorkspaceKey: workspace.sharedWorkspaceKey,
      runtimeConfig: workspace.runtimeConfig,
      isPrimary: workspace.isPrimary,
      createdAt: workspace.createdAt,
      updatedAt: workspace.updatedAt,
    };
  }

  function compactIssueProject(project: Awaited<ReturnType<typeof resolveIssueProjectAndGoal>>["project"]) {
    if (!project) return null;
    return {
      id: project.id,
      companyId: project.companyId,
      urlKey: project.urlKey,
      goalId: project.goalId,
      goalIds: project.goalIds,
      goals: project.goals,
      name: project.name,
      description: project.description,
      status: project.status,
      leadAgentId: project.leadAgentId,
      targetDate: project.targetDate,
      color: project.color,
      icon: project.icon,

View on GitHub (pinned to 01ad858492)

Solutions

  1. Fix the offending parameter to satisfy the constraint stated in the error message (type, range, or allowed values), then retry.
  2. 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:6082 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/85d8ac846c8f369e. Report an issue: GitHub.