无法建立新连接:[Errno 110]-连接在twilio中超时(间歇性)
我们已经使用付费twilio帐户很久了,我们的应用程序在GCP(应用程序引擎)中,偶尔我会在GCP日志中看到下面的错误,我相信这是间歇性的。在过去的10天里,我们已经发送了200万条消息,其中我看到这个错误275次无法建立新连接:[Errno 110]-连接在twilio中超时(间歇性),twilio,sms,twilio-api,Twilio,Sms,Twilio Api,我们已经使用付费twilio帐户很久了,我们的应用程序在GCP(应用程序引擎)中,偶尔我会在GCP日志中看到下面的错误,我相信这是间歇性的。在过去的10天里,我们已经发送了200万条消息,其中我看到这个错误275次 ERROR:root:Error while sending sms HTTPSConnectionPool(host='api.twilio.com', port=443): Max retries exceeded with url: /2010-04-01/Accounts/
ERROR:root:Error while sending sms HTTPSConnectionPool(host='api.twilio.com', port=443): Max retries
exceeded with url: /2010-04-01/Accounts/abcdefghijhl/Messages.json (Caused by
NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x3e990334c610>: Failed to
establish a new connection: [Errno 110] Connection timed out'))
我已经阅读了这个文档(),我觉得这些解决方案在我的情况下都不起作用,因为它们是通用的,但我偶尔会遇到一些错误。这是否与此处所述的配额限制/费率限制有关()。请帮忙
for number in numbers:
number = number
if number:
try:
message = tw_client.messages.create(
body=sms_body,
messaging_service_sid=get_secret(secret_ms),
to=number
)
except Exception as e:
logging.error("error {}".format(e))