CrewAI errors / Schema
ValidationError: 1 validation error for Task - expected_output Field required
Cause
The CrewAI Task model marks expected_output as required with no default; omitting it (or a Pydantic 2.8+ alias edge case) raises a ValidationError at instantiation.
Fix
Always pass an explicit expected_output string when constructing a Task. If the error appears even when present, pin pydantic<2.8 as a temporary workaround for the upstream alias-handling bug. Upgrade CrewAI once a patch is released.
Part of the Automation Error Index — CrewAI errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem