{"record":{"id":"26525573c6b60c84","repo":"deepseek-ai/deepseek-harness","slug":"client-api-endpoint-rejected-json-stringify","errorCode":null,"errorMessage":"client api: ${endpoint} rejected ${JSON.stringify(field)}","messagePattern":"client api: (.+?) rejected (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/client/index.ts","lineNumber":618,"sourceCode":"  if (descriptor.invocation.kind === 'context') {\n    requireStrictCodec(descriptor.invocation.codec, endpoint, descriptor.invocation.wire)\n  }\n}\n\nfunction requireStrictCodec(codec: TypertCodec, endpoint: string, field: string): void {\n  if (codec.mode !== 'strict') {\n    throw new Error(`client api: generated Remote ${endpoint} field ${JSON.stringify(field)} has no strict codec`)\n  }\n}\n\nfunction parse(codec: TypertCodec, value: unknown, endpoint: string, field: string): unknown {\n  if (codec.mode !== 'strict') {\n    throw new Error(`client api: generated Remote ${endpoint} field ${JSON.stringify(field)} has no strict codec`)\n  }\n  try {\n    return codec.schema.parse(value)\n  } catch (cause) {\n    throw new Error(`client api: ${endpoint} rejected ${JSON.stringify(field)}`, { cause })\n  }\n}\n\n/** The namespace retired before or during the call, so no request outcome exists. */\nfunction withdrawn(endpoint: string): RemoteResult<never> {\n  return internalFailure(`client api: Remote method ${endpoint} is no longer mounted`)\n}\n\nfunction carrierFailure(endpoint: string, error: unknown): RemoteResult<never> {\n  return internalFailure(`client api: ${endpoint} failed: ${error instanceof Error ? error.message : String(error)}`)\n}\n\nfunction internalFailure(message: string): RemoteResult<never> {\n  return { ok: false, error: { code: 'internal', message, details: {} } }\n}\n","sourceCodeStart":600,"sourceCodeEnd":634,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/client/index.ts#L600-L634","documentation":"Error \"client api: ${endpoint} rejected ${JSON.stringify(field)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/client/index.ts:618 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the argument value so the field passes the endpoint validation."],"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"}