I have migrated my Python flask app to AWS Lambda after which I started getting the following error of
SSL Verification Failed
Currently using AWS CDK to upload the lambda package and deploying it.
python 3.8 ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1131)
And this is happening on api.pagerduty.com
My requirements.txt file includes PyOpenSSL and Certifi packages, tried different APIs all of them are failing because of SSL verification using requests package's post
method
Already know about verify=False
attribute but want to fix the problem as to why its happening.
Let me know if you guys need any more details around it, really Appreciate it.