Skip to content

JSONDecodeError upon empty response body #48

@ariel-m-s

Description

@ariel-m-s

A JSONDecodeError (from the built-in json library) is raised for HTTP responses with an empty body (which is, naturally, not a JSON). I don’t think this is the expected behavior.

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I guess the expected behavior should be to return an empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions