{"record":{"id":"43afa9f1cd97004b","repo":"deepseek-ai/deepseek-harness","slug":"deepseek-harness-runtime-is-not-running","errorCode":null,"errorMessage":"DeepSeek Harness runtime is not running","messagePattern":"DeepSeek Harness runtime is not running","errorType":"exception","errorClass":"TransportClosedError","httpStatus":null,"severity":"error","filePath":"python/sdk/src/deepseek_harness/client.py","lineNumber":301,"sourceCode":"                except queue.Empty:\n                    continue\n        except BaseException:\n            with self._lock:\n                self._responses.pop(request_id, None)\n            if temp_subscription is not None:\n                temp_subscription.close()\n            raise\n        finally:\n            if temp_subscription is not None:\n                temp_subscription.close()\n        if isinstance(item, BaseException):\n            raise item\n        return item\n\n    def _write_message(self, message: JsonObject) -> None:\n        proc = self._proc\n        if proc is None or proc.stdin is None:\n            raise TransportClosedError(\"DeepSeek Harness runtime is not running\")\n        try:\n            payload = json.dumps(message, separators=(\",\", \":\")) + \"\\n\"\n            with self._write_lock:\n                proc.stdin.write(payload)\n                proc.stdin.flush()\n        except Exception as exc:\n            raise self._runtime_closed_error(\"Failed to write to DeepSeek Harness runtime\") from exc\n\n    def _start_reader_thread(self) -> None:\n        self._reader_thread = threading.Thread(target=self._reader_loop, name=\"dsh-runtime-reader\", daemon=True)\n        self._reader_thread.start()\n\n    def _start_stderr_thread(self) -> None:\n        self._stderr_thread = threading.Thread(target=self._stderr_loop, name=\"dsh-runtime-stderr\", daemon=True)\n        self._stderr_thread.start()\n\n    def _reader_loop(self) -> None:\n        proc = self._proc","sourceCodeStart":283,"sourceCodeEnd":319,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk/src/deepseek_harness/client.py#L283-L319","documentation":"Error \"DeepSeek Harness runtime is not running\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk/src/deepseek_harness/client.py:301 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start or connect to the DeepSeek Harness runtime before issuing requests."],"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"}