{"record":{"id":"f75c0f4720eb1108","repo":"deepseek-ai/deepseek-harness","slug":"internal-f75c0f","errorCode":"internal","errorMessage":"invalid Remote endpoint ${JSON.stringify(endpoint)}","messagePattern":"invalid Remote endpoint (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/api/gateway/src/index.ts","lineNumber":198,"sourceCode":"    // result and rides the wire as an absent value field. A strict descriptor\n    // keeps its schema: there, undefined has to be a declared result.\n    if (result === undefined && descriptor.result.mode !== 'strict') return result\n    return decode(descriptor.result, result, 'result-invalid', endpoint, 'result')\n  }\n\n  private async dispatchRpc(\n    endpoint: string,\n    payload: unknown,\n    signal: AbortSignal,\n  ): Promise<ConnectionRpcResult> {\n    return this.invokeRpc(endpoint, payload, signal)\n  }\n\n  private async invokeRpc(endpoint: string, payload: unknown, signal: AbortSignal): Promise<ConnectionRpcResult> {\n    try {\n      const segments = endpoint.split('/')\n      if (segments.length !== 2 || segments[0] === '' || segments[1] === '') {\n        throw new Error(`invalid Remote endpoint ${JSON.stringify(endpoint)}`)\n      }\n      const [namespace, method] = segments as [string, string]\n      if (!isObject(payload)\n        || !isPlainObject(payload)\n        || Reflect.ownKeys(payload).length !== 1\n        || !Object.hasOwn(payload, 'args')\n        || !isObject(payload.args)\n        || !isPlainObject(payload.args)) {\n        throw new Error('Remote payload must contain exactly one plain-object args field')\n      }\n      const value = await this.invoke({\n        namespace,\n        method,\n        args: payload.args,\n        signal,\n      })\n      // A void or explicitly absent business result carries no `value` field;\n      // JSON has no `undefined`, and the envelope's optional slot is the one","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/api/gateway/src/index.ts#L180-L216","documentation":"Error \"invalid Remote endpoint ${JSON.stringify(endpoint)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/api/gateway/src/index.ts:198 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a valid Remote endpoint string in the expected format."],"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"}