## 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