aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.67k stars 1.01k forks source link

HTTPResponse.create_from_dict raise AttributeError when response body is None #2083

Open E5presso opened 11 months ago

E5presso commented 11 months ago

Hello, I am currently testing CORS logic using a test client for AWS Chalice. As stated in the title, when the Client receives a Response with a body of None, executing HTTPResponse.create_from_dict leads to an AttributeError. Because it cannot perform a decode on a None type.