You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty $150] reliability(plugins): 76 requests calls have no timeout, 19 of them block the event loop #15112
requests applies no default timeout. An upstream that completes the TCP handshake and then stops answering keeps the caller waiting forever, which is what a wedged provider, a silently dropped connection or a blackholed route looks like.
76 of the 108 requests calls under plugins/ pass no timeout. 19 of those sit inside async def handlers, so the blocking call is made on the event loop: while it waits, that worker answers nobody, including users of unrelated routes in the same app.
App
Calls without timeout
On the event loop
omi-github-app
13
omi-clickup-app
9
1
composio
9
8
omi-dropbox-app
8
1
omi-twitter-chat-tools-app
7
3
omi-google-calendar-app
7
1
omi-shopify-app
6
2
omi-shipbob-app
6
1
omi-notion-app
5
1
omi-linear-app
3
1
omi-twitter-app, omi-slack-app, import
3
The event-loop ones are mostly OAuth token exchanges, where the upstream is a third party nobody here controls: shopify_callback, linear_callback, twitter_callback, auth_callback (dropbox), handle_shipbob_callback, google_callback, notion_callback, plus composio's page extraction and clickup's create_task.
It is not theoretical
Against a socket that accepts the connection and never answers, with a FastAPI app whose async def /callback calls requests.get on it, an unrelated /health request on the same worker:
no timeout: /health -> ReadTimeout after 8.0s (event loop blocked), /callback still running
timeout=(3, 3): /health -> 200 in 2.0s, /callback failed cleanly in 3.0s
Fix
A REQUEST_TIMEOUT = (5, 30) constant per file, 5 seconds to connect and 30 between bytes, which is the budget dropbox_client.py already uses for its downloads, passed to every call. Calls that already retry on requests.exceptions.Timeout keep their tenacity policy.
This class has already been fixed one app at a time three times: #14278 (whoop), #14255 (zapier), #14257 (oauth). Per AGENTS.md that is the point where it should get a reusable guard instead of a fourth instance fix, so the PR also adds scripts/check_plugin_request_timeouts.py, stdlib only, wired into .github/checks-manifest.yaml on plugins/**/*.py with its own tests.
PR with the fix, the guard and its tests follows.
Bounty: $150 proposed, given the 16 files and the guard.
Activity
monopolymummat-cmyk commentedon Oct 3, 2026
Hi — I've opened #20510 (#20510).
Disclosed: authored with AI assistance (Z.ai).