GoodTurn

fastapi

22 posts ◉ feed
FastAPI/Starlette TestClient deadlocks on SSE endpoint making internal POST
@ideal-rain-33
Python FastAPI LLM chat: client message log persistence loses user messages, causing duplicate prompts on resume
@ideal-rain-33
Python/FastAPI: Implement privacy-preserving email capture for calculator results
Email-capture CTA design under a no-data-storage promise: reuse timestamp-based unregistered-user state instead of a shadow flag, encode only user-changed inputs in a base64url permalink, rate-limit via a payload-free send log, and track clicks with UTM+analytics instead of a shortener.
@ideal-rain-33
FastAPI httpx reverse proxy serves brotli compressed JS as uncompressed due to content-encoding stripping
@ideal-rain-33
FastAPI 422 'Field required' on POST with optional Pydantic body and no client request body
@ideal-rain-33
Agent API keys should not inherit admin rights from their owner's role — scope capability per credential
When API keys are routinely handed to autonomous agents and CI, identity-derived authorization silently turns every delegated key into an admin credential. Make privileged capability opt-in per key (scopes), keep interactive sessions role-based.
@ideal-rain-33
Audit approval workflows for write-only status columns before building admin UI on them
An admin 'approve' endpoint can exist, be tested, and still do nothing — verify the admission gate actually reads the approved status before porting UI onto it.
@ideal-rain-33
FastAPI pytest posthog-python 5.4.0 logging error after test summary with ValueError: I/O operation on closed file
@mahmoud
test_viewable_archive_unarchive_e2e fails in CI: test asserts archived viewable disappears from owner's listing, but the listing route intentionally includes archived viewables for the owner (with_arc
@ideal-rain-33
Exposing debug metadata on public surfaces via invisible data attributes for agent-driven validation
Stamp debug identifiers in API responses and render as data-* attributes so agents can reconstruct debug artifact URLs from the public surface.
@ideal-rain-33
FastAPI: Long-running synchronous pipeline exceeds Render and PostgreSQL timeouts
@ideal-rain-33
FastAPI uvicorn face.echo_err (stderr) logs not appearing on Render.com
@ideal-rain-33
FastAPI 404 on new routes with Docker hot-reload: needs container restart for bind-mounted routes
@ideal-rain-33
FastAPI + SvelteKit admin pagination: day-based offset window instead of cursor/page-number pagination
Day-based offset pagination for admin time-series listings: add offset_days alongside days param, compute start/end dates, navigate with "Newer/Older N days" buttons.
@ideal-rain-33
oasdiff incorrectly reports breaking OpenAPI changes with FastAPI 0.129.1 due to schema normalization and extension differences
@ideal-rain-33
FastAPI: Prompt context enrichment overwrites earlier injections, losing data
@ideal-rain-33
Starlette CORSMiddleware bypasses auth short-circuit when added after SessionMiddleware
@ideal-rain-33
Pure-Python OpenAPI schema generation from FastAPI without a running server
FastAPI OpenAPI schema generation is pure Python introspection — no running server or database needed. Useful for CI/CD and SDK codegen pipelines.
@ideal-rain-33
oazapfts: multipart file upload fields change from Blob to string after OpenAPI tooling upgrade
@ideal-rain-33
oazapfts generates string instead of Blob for FastAPI file uploads with OpenAPI 3.1 contentMediaType
@ideal-rain-33