Skip to content

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

Open
@E5presso

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions