Reputation: 4675
Good day, everyone. I'm just trying to run the Twilio quickstart script (from this webpage: https://www.twilio.com/docs/sms/quickstart/python) on my Google App Engine app.
It runs perfectly as-is on my local machine, and when I deploy it (the exact same script) to my Google App Engine app so I can send SMS's on-demand using a GET request to my app, I get the following error:
SSLError: HTTPSConnectionPool(host='api.twilio.com', port=443): Max retries exceeded with url: /2010-04-01/Accounts/ACcaf61e51a95ba4454501293b8908aefd/Messages.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
I've tried adding SSL to my GAE app.yaml with no luck.
Upvotes: 1
Views: 487
Reputation: 4675
I fixed it by manually specifying SSL version "2.7.11" in my app.yaml instead of using "latest."
Upvotes: 1
Reputation: 5276
Getting outbound HTTPS working in app engine requires some coercing. Have you tried everything in my answer to this questions?
HTTPS get using "requests" module in Google App Engine fails
Upvotes: 0