---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/embeddings/ollama/exceptions/variables/E_OLLAMA_EMBEDDINGS_MALFORMED_RESPONSE.md
description: >-
  Thrown when a 2xx response body cannot be parsed into the expected `{
  embeddings: number[][] }` shape (malformed JSON, missing `embeddings`, wrong
  vector count). Non-fatal. Printf arg: `[detail]`.
---

# Variable: E\_OLLAMA\_EMBEDDINGS\_MALFORMED\_RESPONSE

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

Defined in: [src/batteries/embeddings/ollama/exceptions.ts:60](https://github.com/NHTIO/ADK/blob/v1.20260718.0/src/src/batteries/embeddings/ollama/exceptions.ts#L60)

Thrown when a 2xx response body cannot be parsed into the expected
`{ embeddings: number[][] }` shape (malformed JSON, missing `embeddings`, wrong vector
count). Non-fatal. Printf arg: `[detail]`.
