https://linen.dev logo
Gmail API ConnectionResetError in Multi-Worker Env...
# 🖥│support-forum
p
What's not working? Getting intermittent ConnectionResetError(104, 'Connection reset by peer') when calling GMAIL_SEND_EMAIL through Composio APIs. Out of last 7 attempts only one of them succeeded Error Details: Tool execution failed: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) Function: GMAIL_SEND_EMAIL with arguments:
Copy code
{
  "recipient_email": "pradyumny007@gmail.com",
  "subject": "Monthly Subscription Payment Summary",
  "body": "<h2>Monthly Subscription Payment Summary</h2>...",
  "is_html": true,
  "user_id": "me"
}
SDK Info:
Copy code
Python 3.13.4
composio_core==0.7.15
composio_openai==0.7.19
Using Composio's default OAuth credentials
Running in Celery ForkPoolWorker environment
Pattern: - Consistent pattern: fail, fail,...succeed(sometimes) Composio Account Setup: - Multiple Gmail accounts connected via different entity IDs Question: Is this a known issue with Composio API calls with many accounts connected? Any resolutions? @dhruvjaglan @dumb_flag
a
Issue reported by a few, but very rare. Whats the version of [requests](https://pypi.org/project/requests) library you're using? Also, we've released v3 SDK, and would higly recommend migrating [guide](https://docs.composio.dev/docs/migration)
c
Hi Pradyumn, Could you share the logIds of the failed and successful Tool calls?