#540 [API/Perf] oauth2.py blocking requests library in async handler

closed high Created 2025-12-17 16:29 · Updated 2025-12-17 18:53

Description

Edit
File: api/oauth_handlers/oauth2.py:374-401. Uses synchronous requests.post() and requests.get() in async oauth2_callback. This blocks the event loop for up to 10s per OAuth login. IMPACT: Degrades API responsiveness under load. FIX: Use httpx async client or asyncio.to_thread().

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...