{"record":{"id":"8c791975a90289e7","repo":"deepseek-ai/deepseek-harness","slug":"initialize-returned-no-server-identity-json-str","errorCode":null,"errorMessage":"initialize returned no server identity: ${JSON.stringify(result)}","messagePattern":"initialize returned no server identity: (.+?)","errorType":"exception","errorClass":"SdkProtocolError","httpStatus":null,"severity":"error","filePath":"packages/sdk/client/src/client.ts","lineNumber":272,"sourceCode":"      // will never be answered.\n      this.transport?.close()\n    })\n    const transport = new JsonRpcLineTransport(child.stdout, child.stdin)\n    transport.onNotification((method, params) => { this.dispatchNotification({ method, params }) })\n    transport.start()\n    this.transport = transport\n  }\n\n  /**\n   * Perform the process-wide handshake.\n   * @param params - workspace cwd plus the provider/model route.\n   * @returns the runtime's wire identity.\n   */\n  async initialize(params: InitializeParams): Promise<InitializeResult> {\n    const result = await this.request('initialize', { ...params })\n    if (!isRecord(result) || !isRecord(result.serverInfo)\n      || typeof result.serverInfo.name !== 'string' || typeof result.serverInfo.version !== 'string') {\n      throw new SdkProtocolError(`initialize returned no server identity: ${JSON.stringify(result)}`)\n    }\n    return { serverInfo: { name: result.serverInfo.name, version: result.serverInfo.version } }\n  }\n\n  /**\n   * Queue one prompt and return its durable inbox identity.\n   * @param sessionId - target session; an unknown id creates it.\n   * @param contentBlocks - the user message, sent verbatim.\n   * @returns the queued message id.\n   */\n  async prompt(sessionId: string, contentBlocks: ContentBlock[]): Promise<string> {\n    const params: SessionPromptParams = { sessionId, contentBlocks }\n    const result = await this.request('session/prompt', { ...params })\n    if (!isRecord(result) || typeof result.messageId !== 'string') {\n      throw new SdkProtocolError(`session/prompt returned no message id: ${JSON.stringify(result)}`)\n    }\n    return result.messageId\n  }","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/sdk/client/src/client.ts#L254-L290","documentation":"Error \"initialize returned no server identity: ${JSON.stringify(result)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/sdk/client/src/client.ts:272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the server implements initialize correctly and returns its identity; check SDK/server version compatibility."],"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"}