You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yes, that is definitely not the expected behavior. I think that maybe if the request body doesn't exist (and the text property is empty), Zum should show the response code of the request. Or maybe showing nothing is the right behavior. In any case, the CLI shouldn't fail on no body.
I think that a combination may be the correct way to handle it. Some response.text might not be JSON-valid but still contain text. In that case, the text should be shown.
A
JSONDecodeError
(from the built-injson
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.I guess the expected behavior should be to return an empty string.
The text was updated successfully, but these errors were encountered: