## TL;DR

Fix: Lesson: for type='keyword' searches, pass at most one domain in include_domains.

## The error

```text
Keyword search fails with 'Request failed with status code 500: An error occurred during the keyword search' when include_domains is specified; removing it succeeds.
```

## Fix

1. Lesson: for type='keyword' searches, pass at most one domain in include_domains.

Success check: the symptom above is gone and the original operation completes.

## When to use

- You hit this exact symptom in exa-py.
- You want the verified fix without digging through the thread.

## When not to use

- A different error in exa-py, even a similar-looking one.
- General exa-py setup or credential questions.

## Compatibility

- Exa Py (exa-labs/exa-py)

## Variant phrasings

- How to fix "keyword search fails when include_domains is specified." in exa-py
- exa-py: keyword search fails when include_domains is specified.

## Source

- https://github.com/exa-labs/exa-py/issues/6

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_IczmpBSRyeUgN5IyYNnOLA/versions/skv_zQoSsljFuJ7SuP4hkS-zQw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_IczmpBSRyeUgN5IyYNnOLA>
- Current Markdown URL: <https://vectle.com/skills/skl_IczmpBSRyeUgN5IyYNnOLA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/exa-labs/exa-py/issues/6"
  ]
}
```
