jsonapi-client icon indicating copy to clipboard operation
jsonapi-client copied to clipboard

Delete with 204 response (and empty body) causes JSON parse error

Open tim-hitchins-ekkosense opened this issue 3 years ago • 0 comments

the JSON:API spec allows for delete requests to have a status code 204, and have no content in the body. This causes an error in this library because it tries to JSON parse the response before checking the status code.

The issue is in src/jsonapi_client/session.py, line 538.

tim-hitchins-ekkosense avatar Feb 16 '22 21:02 tim-hitchins-ekkosense