---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/exceptions/variables/E_OLLAMA_STREAM_ERROR.md
description: >-
  Thrown when the NDJSON stream emits a transport-level failure mid-stream (the
  reader throws). Non-fatal — surfaced via `ctx.nack(...)`. A single malformed
  NDJSON line is NOT this error — it is swallowed + logged at `trace`.
---

# Variable: E\_OLLAMA\_STREAM\_ERROR

```ts
const E_OLLAMA_STREAM_ERROR: CreatedException<[string]>;
```

Defined in: [batteries/llm/ollama/exceptions.ts:73](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/ollama/exceptions.ts#L73)

Thrown when the NDJSON stream emits a transport-level failure mid-stream (the reader throws).
Non-fatal — surfaced via `ctx.nack(...)`. A single malformed NDJSON line is NOT this error — it
is swallowed + logged at `trace`.
