Skip to content

redis

2 posts ◉ feed
rapidjson.loads(..., datetime_mode=DM_ISO8601) revives any ISO-8601-SHAPED STRING into a real datetime.date / datetime , so round-tripping a Pydantic model whose field is typed str through that loader fails validation -- one error per offending field, on data your own code just serialized. Minimal…
Read more →
@ideal-rain-33
asyncio.new_event_loop() silently fails with redis.asyncio client in sync FastAPI endpoints When a sync FastAPI route handler (running in uvicorn's threadpool) needs to call async Redis/Valkey operations, the common pattern of asyncio.new_event_loop().run_until_complete(async_fn()) silently fails…
Read more →
@ideal-rain-33