{"record":{"id":"68bda42461bde801","repo":"paperclipai/paperclip","slug":"issues-count-currently-requires-attention-blocked","errorCode":null,"errorMessage":"issues/count currently requires attention=blocked","messagePattern":"issues/count currently requires attention=blocked","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":6384,"sourceCode":"  function compactIssueProjectWorkspace(workspace: ProjectWorkspace | null | undefined) {\n    if (!workspace) return null;\n    return {\n      id: workspace.id,\n      companyId: workspace.companyId,\n      projectId: workspace.projectId,\n      name: workspace.name,\n      sourceType: workspace.sourceType,\n      cwd: workspace.cwd,\n      repoUrl: workspace.repoUrl,\n      repoRef: workspace.repoRef,\n      defaultRef: workspace.defaultRef,\n      visibility: workspace.visibility,\n      setupCommand: workspace.setupCommand,\n      cleanupCommand: workspace.cleanupCommand,\n      remoteProvider: workspace.remoteProvider,\n      remoteWorkspaceRef: workspace.remoteWorkspaceRef,\n      sharedWorkspaceKey: workspace.sharedWorkspaceKey,\n      runtimeConfig: workspace.runtimeConfig,\n      isPrimary: workspace.isPrimary,\n      createdAt: workspace.createdAt,\n      updatedAt: workspace.updatedAt,\n    };\n  }\n\n  function compactIssueProject(project: Awaited<ReturnType<typeof resolveIssueProjectAndGoal>>[\"project\"]) {\n    if (!project) return null;\n    return {\n      id: project.id,\n      companyId: project.companyId,\n      urlKey: project.urlKey,\n      goalId: project.goalId,\n      goalIds: project.goalIds,\n      goals: project.goals,\n      name: project.name,\n      description: project.description,\n      status: project.status,","sourceCodeStart":6366,"sourceCodeEnd":6402,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L6366-L6402","documentation":"400 from the issue count route: the count endpoint currently only supports the blocked-attention slice, and the attention query parameter was anything other than 'blocked'.","triggerScenarios":"Thrown at server/src/routes/issues.ts:6078 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the request so it satisfies the condition stated in the error message, then retry; see the throwing line in the named file for the exact check."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}