RESTClient icon indicating copy to clipboard operation
RESTClient copied to clipboard

Request does not finish when 204 Status code (no Content) includes content

Open tylkomat opened this issue 10 years ago • 5 comments

When communicating with a service that returns a 204 (No Content) Response but also sends data (i.e. empty JSON {}) then the client never finishes. While the Request is done properly on the server side, the popup which says Processing ...sending Data never closes. One has to hit abort.

Except that everything works as expected.

tylkomat avatar Nov 21 '14 12:11 tylkomat

I'm also seeing this.

lord2800 avatar Jan 09 '15 22:01 lord2800

also see this behavior

niko-lay avatar Jan 13 '15 13:01 niko-lay

The solutions to issues 93 and 124 work here. Remove the Content-Type header or set to some something other than application/json.

tenwit avatar Apr 24 '15 03:04 tenwit

I can't do that in my case--the API requires it.

lord2800 avatar Apr 24 '15 03:04 lord2800

Another workaround is to add whitespace to the body of the response. Or use curl for this test case!

tenwit avatar Apr 24 '15 04:04 tenwit