{"record":{"id":"507eaa3f17837389","repo":"deepseek-ai/deepseek-harness","slug":"client-api-method-json-stringify-namespace","errorCode":null,"errorMessage":"client api: method ${JSON.stringify(`${namespace}/${method}`)} conflicts with its namespace service","messagePattern":"client api: method (.+?)/(.+?)`\\)\\} conflicts with its namespace service","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/client/index.ts","lineNumber":433,"sourceCode":"      return carrierFailure(endpoint, error)\n    }\n  }\n}\n\ntype InvokeRemote = (\n  direct: DirectMethod | undefined,\n  scoped: ScopedMethod | undefined,\n  callerCtx: Context,\n  args: readonly unknown[],\n) => Promise<RemoteResult<unknown>>\n\nclass RemoteNamespaceService extends Service {\n  private readonly methods = new Map<string, RemoteMethodRecord>()\n  private readonly namespace: string\n\n  static assertMethodAvailable(namespace: string, method: string): void {\n    if (REMOTE_NAMESPACE_FIELDS.has(method) || method in RemoteNamespaceService.prototype) {\n      throw new Error(`client api: method ${JSON.stringify(`${namespace}/${method}`)} conflicts with its namespace service`)\n    }\n  }\n\n  constructor(\n    ctx: Context,\n    name: string,\n    private readonly invokeRemote: InvokeRemote,\n  ) {\n    super(ctx, remoteServiceKey(name))\n    this.namespace = name\n  }\n\n  assertMethodAvailable(method: string): void {\n    RemoteNamespaceService.assertMethodAvailable(this.namespace, method)\n    if (method in this && !this.methods.has(method)) {\n      throw new Error(`client api: method ${JSON.stringify(`${this.namespace}/${method}`)} conflicts with its namespace service`)\n    }\n  }","sourceCodeStart":415,"sourceCodeEnd":451,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/client/index.ts#L415-L451","documentation":"Error \"client api: method ${JSON.stringify(`${namespace}/${method}`)} conflicts with its namespace service\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/client/index.ts:433 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the method so it does not shadow its namespace service."],"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"}