{"record":{"id":"8c59a07439cbfd7e","repo":"deepseek-ai/deepseek-harness","slug":"subprocess-e2b-invalid-base64-output-transport","errorCode":null,"errorMessage":"subprocess-e2b: invalid base64 output transport","messagePattern":"subprocess-e2b: invalid base64 output transport","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/e2b/subprocess-e2b/src/output.ts","lineNumber":37,"sourceCode":"   * @returns the complete raw bytes made available by this callback.\n   */\n  push(text: string): Buffer {\n    if (text.length === 0) return Buffer.alloc(0)\n    this.pending += text\n    const decoded: Buffer[] = []\n    for (;;) {\n      const boundary = this.pending.indexOf('\\n')\n      if (boundary < 0) break\n      const frame = this.pending.slice(0, boundary)\n      this.pending = this.pending.slice(boundary + 1)\n      if (frame === E2B_OUTPUT_COMPLETE_FRAME) {\n        if (this.complete) throw new Error('subprocess-e2b: duplicate output transport completion')\n        this.complete = true\n        continue\n      }\n      if (this.complete) throw new Error('subprocess-e2b: output transport continued after completion')\n      if (!BASE64_TEXT.test(frame)) {\n        throw new Error('subprocess-e2b: invalid base64 output transport')\n      }\n      const bytes = Buffer.from(frame, 'base64')\n      if (bytes.toString('base64') !== frame) {\n        throw new Error('subprocess-e2b: invalid base64 output transport')\n      }\n      decoded.push(bytes)\n    }\n    return Buffer.concat(decoded)\n  }\n\n  /**\n   * Validate clean encoder completion, or discard an interrupted trailing frame after requested termination.\n   * @param requireComplete - Whether natural completion requires the reserved EOF frame.\n   */\n  finish(requireComplete = true): void {\n    if (!requireComplete) {\n      this.pending = ''\n      return","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/subprocess-e2b/src/output.ts#L19-L55","documentation":"Error \"subprocess-e2b: invalid base64 output transport\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/subprocess-e2b/src/output.ts:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}