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.
A
JSONDecodeError(from the built-injsonlibrary) is raised for HTTP responses with an empty body (which is, naturally, not a JSON). I don’t think this is the expected behavior.I guess the expected behavior should be to return an empty string.