{"record":{"id":"33a72da8f799d315","repo":"paperclipai/paperclip","slug":"invalid-value-trimmed-in-cron-spec-name-fi","errorCode":null,"errorMessage":"Invalid value \"${trimmed}\" in cron ${spec.name} field","messagePattern":"Invalid value \"(.+?)\" in cron (.+?) field","errorType":"validation","errorClass":"Error","httpStatus":422,"severity":"error","filePath":"server/src/services/cron.ts","lineNumber":163,"sourceCode":"      }\n      for (let i = a; i <= b; i++) {\n        values.add(i);\n      }\n      continue;\n    }\n\n    // Wildcard\n    if (trimmed === \"*\") {\n      for (let i = spec.min; i <= spec.max; i++) {\n        values.add(i);\n      }\n      continue;\n    }\n\n    // Single value\n    const val = parseInt(trimmed, 10);\n    if (isNaN(val)) {\n      throw new Error(\n        `Invalid value \"${trimmed}\" in cron ${spec.name} field`,\n      );\n    }\n    validateBounds(val, spec);\n    values.add(val);\n  }\n\n  if (values.size === 0) {\n    throw new Error(`Empty result for cron ${spec.name} field`);\n  }\n\n  return [...values].sort((a, b) => a - b);\n}\n\nfunction validateBounds(value: number, spec: FieldSpec): void {\n  if (value < spec.min || value > spec.max) {\n    throw new Error(\n      `Value ${value} out of range [${spec.min}–${spec.max}] for cron ${spec.name} field`,","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/services/cron.ts#L145-L181","documentation":"Fallback guard in parseField: the token is not a comma list element handled earlier, has no step or range syntax, is not the '*' wildcard, and fails parseInt — i.e. it is a bare non-numeric value like \"mon\" or \"abc\". The token and field name identify the fix.","triggerScenarios":"Thrown at server/src/services/cron.ts:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace the invalid value in the named cron field with a valid number, name, range, or wildcard."],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}