Troubleshooting
Common symptoms and checkpoints for isolation.
Related: pages/guides/faq.en.md (List of common failures)
CLI (river run)
First Step (Pre-diagnosis)
If isolation is difficult, run river doctor . first to check for "missing config" or "diff failure".
OpenAI API key not found
- Symptom (Example):
LLM: OPENAI_API_KEY (or RIVER_OPENAI_API_KEY) not setRiver Review doctorshowsOpenAI (review): not set
- Action:
- Set
OPENAI_API_KEYorRIVER_OPENAI_API_KEYin environment variables. - Use
--dry-runto avoid external requests.
- Set
Not recognized as Git repository
- Symptom:
Not a git repository: ... - Action:
- Run in a directory under Git control.
git init/git clone ...if needed.
Skill definition load/validate failed
- Symptom:
Skill configuration error: ... - Action:
- Run
npm run skills:validateto check error details. - Refer to
pages/reference/skill-schema-reference.en.mdfor schema details.
- Run
Cannot read rules (.river/rules.md)
- Symptom: Rules file read error.
- Action:
- Check existence and read permissions of
.river/rules.md(delete if unneeded).
- Check existence and read permissions of
Don't know what was skipped
- Action:
- Run
river run . --debugand check output for selected skills and skip reasons.
- Run
File not detected in local run
- Action:
- Check diff with
git statusorgit diff. - Check target file/hunk preview with
river run . --debug.
- Check diff with
Rate Limit Error
- Action:
- Check if OpenAI rate limit is reached.
- Wait a while and retry.
- Use
--dry-runto check prompt/skill selection only if needed.
GitHub Actions
Review not running / Permission error
permissionsmight be insufficient (e.g.,pull-requests: write).- Check if Secrets like
OPENAI_API_KEYare correctly set.
Diff not detected
- Recommend
fetch-depth: 0inactions/checkout(to stably retrieve merge-base).