HTTP requests to SendGrid can hang as SendGridAPIClient
does not have a timeout.
#757
Labels
difficulty: medium
fix is medium in difficulty
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
Issue Summary
HTTP requests to SendGrid could hang, as
SendGridAPIClient
has no time out defined in case of a network anomaly.Steps to Reproduce
This is a bit difficult to reproduce, as it could be caused by a network anomaly (Not necessarily SendGrid's issue).
When a network anomaly occurred, it is possible for API calls to SendGrid to hang indefinitely.
SendGridAPIClient
creates a client, it does not allow a timeout to be passed in.SendGridAPIClient
to overrideSendGridAPIClient.client
or to have an outer wrapper to control timeout.Expected Behavior
Either a reasonable timeout is set, or a timeout option should be allowed when creating a
SendGridAPIClient
.Actual
None is available.
Technical details:
Relevant Link:
SendGridAPIClient
:sendgrid-python/sendgrid/sendgrid.py
Line 75 in 265b984
The text was updated successfully, but these errors were encountered: