keithrozario / Klayers

Python Packages as AWS Lambda Layers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips

opened this issue · comments

Describe the bug
I'm trying to integrate requests into a Python 3.8 Lambda function. However, I'm encountering the following error message: "[BUG] urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips'."

Screenshots
N/A

Layer Version ARN:
arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p38-requests:14


Framework:
Lambda Function with Python 3.8

Additional context
It seems that there is a compatibility issue between urllib3 version 2.0 and the OpenSSL version used by the 'ssl' module in Python 3.8. This issue prevents the successful integration of requests in my Lambda function. I would appreciate any guidance or suggestions on how to resolve this issue.

Yes, unfortunately, this is a known issue with some conflict in dependencies for Requests and Urrlib :(

#305

Solution for now is to use the non-latest version. Try arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p38-requests:13 (or 11/12).