Common Issues
Schema Parsing
Schema parsing failed in sqlalchemy
- Verify Python 3.10+:
python3 --version - Install SQLAlchemy:
pip install sqlalchemy - Ensure
DeclarativeBaseand__tablename__are set
No SQLAlchemy Base class found
- Define a
Baseclass inheriting fromDeclarativeBase
IR Validation
IR validation failed
- Check
.fastbackend/ir.invalid.jsonfor the partial IR - Ensure all entities have fields and a primary key
Configuration
Environment variable X is not defined
- Export the variable or remove
${X}from config
Invalid configuration at schema.format
- Supported:
sqlalchemy,prisma
Runtime
IR file not found
- Run
fastbackend generatebeforefastbackend dev
Failed to initialize runtime
- Validate
.fastbackend/ir.jsonis valid JSON - Run with
--debug:fastbackend dev --debug
email-validator is not installed
pip install 'pydantic[email]'
Docker
Dockerfile not found
- Run
fastbackend init --docker
Container exits immediately
- Use
python -m uvicorn main:appin Dockerfile CMD - Run
fastbackend generatebeforedocker build
Debug Mode
fastbackend generate --debug
fastbackend dev --debug