<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>fastapi — FixDevs</title><description>Latest fixes and solutions for fastapi errors on FixDevs.</description><link>https://fixdevs.com/</link><language>en</language><lastBuildDate>Wed, 20 May 2026 00:00:00 GMT</lastBuildDate><atom:link href="https://fixdevs.com/tags/fastapi/rss.xml" rel="self" type="application/rss+xml"/><item><title>Fix: aiosqlite Not Working — Single Writer, WAL Mode, Row Factory, and Connection Patterns</title><link>https://fixdevs.com/blog/aiosqlite-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/aiosqlite-not-working/</guid><description>How to fix Python aiosqlite errors — database is locked, WAL mode for concurrent reads, foreign_keys PRAGMA, row factory for dict-like rows, connection per request vs pool, datetime detect_types, and FastAPI integration.</description><pubDate>Wed, 20 May 2026 00:00:00 GMT</pubDate><category>python</category><category>aiosqlite</category><category>sqlite</category><category>async</category><category>fastapi</category><category>asyncio</category><author>FixDevs</author></item><item><title>Fix: APScheduler Not Working — Jobs Not Running, Gunicorn Duplicates, and Timezone Issues</title><link>https://fixdevs.com/blog/apscheduler-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/apscheduler-not-working/</guid><description>How to fix APScheduler — BackgroundScheduler exits when script ends, jobs run multiple times under Gunicorn, AsyncIOScheduler not firing, misfire_grace_time skips, and timezone-aware cron triggers.</description><pubDate>Mon, 18 May 2026 00:00:00 GMT</pubDate><category>python</category><category>apscheduler</category><category>scheduling</category><category>cron</category><category>fastapi</category><category>flask</category><author>FixDevs</author></item><item><title>Fix: arq Not Working — Worker Not Picking Jobs, WorkerSettings, Cron, Retries, and Result Expiry</title><link>https://fixdevs.com/blog/arq-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/arq-not-working/</guid><description>How to fix Python arq errors — worker can&apos;t find tasks, WorkerSettings class structure, cron syntax differences, msgpack serialization errors, job_id deduplication, result expiration, and Redis connection pooling.</description><pubDate>Mon, 18 May 2026 00:00:00 GMT</pubDate><category>python</category><category>arq</category><category>task-queue</category><category>asyncio</category><category>redis</category><category>fastapi</category><author>FixDevs</author></item><item><title>Fix: msgspec Not Working — Struct Definition, Type Validation, and JSON/MessagePack Encoding</title><link>https://fixdevs.com/blog/msgspec-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/msgspec-not-working/</guid><description>How to fix msgspec errors — Struct field type not supported, ValidationError on decode, msgspec vs Pydantic differences, custom type hooks, frozen Struct mutation, and JSON Schema generation.</description><pubDate>Mon, 11 May 2026 00:00:00 GMT</pubDate><category>python</category><category>msgspec</category><category>serialization</category><category>json</category><category>msgpack</category><category>fastapi</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: Tortoise ORM Not Working — Model Registration, Async Init, and Relationship Errors</title><link>https://fixdevs.com/blog/tortoise-orm-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/tortoise-orm-not-working/</guid><description>How to fix Tortoise ORM errors — Tortoise.init not called, no module imported model, fetch_related missing, aerich migration setup, FastAPI integration patterns, and ConfigurationError missing connection.</description><pubDate>Sat, 09 May 2026 00:00:00 GMT</pubDate><category>python</category><category>tortoise-orm</category><category>async</category><category>fastapi</category><category>orm</category><category>database</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: SQLModel Not Working — table=True Confusion, Relationship Loading, and Session Errors</title><link>https://fixdevs.com/blog/sqlmodel-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/sqlmodel-not-working/</guid><description>How to fix SQLModel errors — table not created without table=True, relationship not eager-loaded MissingGreenlet, AttributeError on lazy attribute, mixing Pydantic and Table classes, Optional vs default None, and async session setup.</description><pubDate>Thu, 07 May 2026 00:00:00 GMT</pubDate><category>python</category><category>sqlmodel</category><category>pydantic</category><category>sqlalchemy</category><category>fastapi</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: Pydantic Settings Not Working — Env Vars Not Loading, Nested Config, and v2 Migration</title><link>https://fixdevs.com/blog/pydantic-settings-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/pydantic-settings-not-working/</guid><description>How to fix Pydantic Settings errors — environment variables not picked up, .env file not loaded, ValidationError missing field, nested model env vars, SettingsConfigDict required, secret files, and BaseSettings import.</description><pubDate>Sun, 26 Apr 2026 00:00:00 GMT</pubDate><category>python</category><category>pydantic</category><category>pydantic-settings</category><category>configuration</category><category>fastapi</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: httpx Not Working — Async Client, Timeout, and Connection Pool Errors</title><link>https://fixdevs.com/blog/httpx-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/httpx-not-working/</guid><description>How to fix httpx errors — RuntimeError event loop is closed, ReadTimeout exception, ConnectionResetError, async client not closing properly, HTTP/2 not enabled, SSL verify failed, and proxy not working.</description><pubDate>Thu, 09 Apr 2026 00:00:00 GMT</pubDate><category>python</category><category>httpx</category><category>async</category><category>http-client</category><category>fastapi</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: Uvicorn Not Working — Worker Errors, Reload Issues, and Production Deployment</title><link>https://fixdevs.com/blog/uvicorn-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/uvicorn-not-working/</guid><description>How to fix Uvicorn errors — Address already in use port binding, reload not detecting changes, SSL certificate errors, worker class with gunicorn, WebSocket disconnect, graceful shutdown, and proxy headers behind nginx.</description><pubDate>Thu, 09 Apr 2026 00:00:00 GMT</pubDate><category>python</category><category>uvicorn</category><category>asgi</category><category>fastapi</category><category>starlette</category><category>deployment</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: FastAPI BackgroundTasks Not Working — Task Not Running or Dependency Errors</title><link>https://fixdevs.com/blog/fastapi-background-tasks-not-working/</link><guid isPermaLink="true">https://fixdevs.com/blog/fastapi-background-tasks-not-working/</guid><description>How to fix FastAPI BackgroundTasks — task not executing, dependency injection in tasks, error handling, Celery for heavy tasks, and lifespan-managed background workers.</description><pubDate>Wed, 25 Mar 2026 00:00:00 GMT</pubDate><category>fastapi</category><category>python</category><category>backend</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: FastAPI Dependency Injection Errors — Dependencies Not Working</title><link>https://fixdevs.com/blog/fastapi-dependency-injection-error/</link><guid isPermaLink="true">https://fixdevs.com/blog/fastapi-dependency-injection-error/</guid><description>How to fix FastAPI dependency injection errors — async dependencies, database sessions, sub-dependencies, dependency overrides in tests, and common DI mistakes.</description><pubDate>Sat, 21 Mar 2026 00:00:00 GMT</pubDate><category>python</category><category>fastapi</category><category>backend</category><category>debugging</category><author>FixDevs</author></item><item><title>Fix: Python asyncio Blocking the Event Loop — Mixing Sync and Async Code</title><link>https://fixdevs.com/blog/python-async-sync-mix/</link><guid isPermaLink="true">https://fixdevs.com/blog/python-async-sync-mix/</guid><description>How to fix Python asyncio event loop blocking — using run_in_executor for sync calls, asyncio.to_thread, avoiding blocking I/O in coroutines, and detecting event loop stalls.</description><pubDate>Sat, 21 Mar 2026 00:00:00 GMT</pubDate><category>python</category><category>asyncio</category><category>backend</category><category>fastapi</category><category>debugging</category><category>performance</category><author>FixDevs</author></item><item><title>Fix: Pydantic ValidationError — Field Required / Value Not Valid</title><link>https://fixdevs.com/blog/pydantic-validation-error/</link><guid isPermaLink="true">https://fixdevs.com/blog/pydantic-validation-error/</guid><description>How to fix Pydantic ValidationError in Python — missing required fields, wrong types, custom validators, handling optional fields, v1 vs v2 API differences, and debugging complex nested models.</description><pubDate>Thu, 19 Mar 2026 00:00:00 GMT</pubDate><category>python</category><category>pydantic</category><category>fastapi</category><category>debugging</category><category>backend</category><author>FixDevs</author></item><item><title>Fix: FastAPI 422 Unprocessable Entity (validation error)</title><link>https://fixdevs.com/blog/fastapi-422-unprocessable-entity/</link><guid isPermaLink="true">https://fixdevs.com/blog/fastapi-422-unprocessable-entity/</guid><description>How to fix FastAPI 422 Unprocessable Entity error caused by wrong request body format, missing fields, type mismatches, query parameter errors, and Pydantic validation.</description><pubDate>Mon, 09 Mar 2026 00:00:00 GMT</pubDate><category>python</category><category>fastapi</category><category>debugging</category><author>FixDevs</author></item></channel></rss>