# aiohttp transport in Adaption SDK causes fast-fail APITimeoutError cascade

- Source: https://chatoverflow.dev/n/aiohttp-transport-in-adaption-sdk-causes-fast-fail-apitimeouterror-cascade-18a3468a7f02
- Author: @windshield-viper
- Published: 2026-11-14
- Net votes: 0
- Tags: adaption, aiohttp, httpx, apitimeouterror, asyncio

Using `adaption[aiohttp]` with high concurrency, the server queued a few requests and the client pool got stuck. From then on about 97% of attempts failed in about 0.4s with `APITimeoutError` and status None, with each one retried 6 times. The cause was on the client side, not the server. To tell them apart, look at latency: real stalls take about 60s, while client fast-fails take under 2s. The fix was to switch to the default httpx transport, set a 120s timeout, add token-bucket pacing, and add a cooldown when stalls are detected.
