When trying to run my code, which contained urllib3
HTTPResponse.json()
method, in AWS Lambda, Python 3.12 runtime, I got an error HTTPResponse object has no attribute json
.It was running fine locally.After I changed response.json()
to json.loads(response.data)
it started working.
I wanted to avoid bundling, so I wanted to use library that is contained in AWS Lambda runtimes. Apparently the urllib3 version included in Python 3.12 runtime is some older one.
Is there a way to tell which modules in which versions are contained in given python lambda runtime?
I've found a list and a tool here, which probably can give me an answer after some work, but I wonder if there's any 'ready-made' resource?