Skip to content

Commit e78c147

Browse files
fix: add aiohttp to gateway Dockerfile for Slack async client (#6719)
## Summary - Add `aiohttp` to `Dockerfile.gateway` pip install list — required by `slack-sdk`'s `AsyncWebClient` ## Problem The Slack router's `_stream_slack_response` imports `AsyncWebClient` in a background task (after the HTTP 200 ACK). `AsyncWebClient` depends on `aiohttp`, which wasn't installed in the Docker image. This caused: 1. `ModuleNotFoundError: No module named 'aiohttp'` in the background task 2. The exception propagates through Starlette's ASGI response cycle, corrupting the HTTP keep-alive connection 3. The next test reusing that connection sees `Server disconnected without sending a response` 4. **Non-deterministic failures** — whichever test lands on the corrupted connection fails ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] New and existing tests pass locally with my changes Co-authored-by: Yash Pratap Solanky <101447028+ysolanky@users.noreply.github.com>
1 parent a6172e2 commit e78c147

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/agno/tests/system/Dockerfile.gateway

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ RUN pip install --no-cache-dir \
3737
a2a-sdk \
3838
agui \
3939
ag-ui-protocol \
40-
slack-sdk
40+
slack-sdk \
41+
aiohttp
4142

4243
# Copy the gateway server script
4344
WORKDIR /app

0 commit comments

Comments
 (0)