{"record":{"id":"0c50d51a2d64a4c1","repo":"deepseek-ai/deepseek-harness","slug":"non-finite-numbers-are-not-json-data","errorCode":null,"errorMessage":"non-finite numbers are not JSON data","messagePattern":"non-finite numbers are not JSON data","errorType":"exception","errorClass":"MaterializeError","httpStatus":null,"severity":"error","filePath":"packages/workflow/workflow-worker-thread/src/realm.ts","lineNumber":84,"sourceCode":"export function materializeFromRealm(value: unknown, root = 'value'): unknown {\n  if (value === undefined) return undefined\n  try {\n    return materialize(value, root, new Set())\n  } catch (error: unknown) {\n    if (error instanceof MaterializeError) throw error\n    // A property read ran script code that threw; total-ize it so callers can\n    // keep the narrow MaterializeError contract.\n    throw new MaterializeError(root, `reading the value threw: ${renderThrown(error)}`)\n  }\n}\n\nfunction materialize(value: unknown, path: string, seen: Set<object>): unknown {\n  switch (typeof value) {\n    case 'boolean':\n    case 'string':\n      return value\n    case 'number': {\n      if (!Number.isFinite(value)) throw new MaterializeError(path, 'non-finite numbers are not JSON data')\n      return value\n    }\n    case 'bigint':\n      throw new MaterializeError(path, 'bigints are not JSON data')\n    case 'function':\n      throw new MaterializeError(path, 'functions are not plain JSON data')\n    case 'symbol':\n      throw new MaterializeError(path, 'symbols are not plain JSON data')\n    case 'undefined':\n      throw new MaterializeError(path, 'undefined is not JSON data')\n    case 'object':\n      break\n  }\n  if (value === null) return null\n  const objectValue: object = value\n  if (seen.has(objectValue)) throw new MaterializeError(path, 'circular references are not JSON data')\n  seen.add(objectValue)\n  try {","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/workflow/workflow-worker-thread/src/realm.ts#L66-L102","documentation":"Error \"non-finite numbers are not JSON data\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/workflow/workflow-worker-thread/src/realm.ts:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace NaN/Infinity with finite numbers or explicit string markers before returning the value."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}