Hang on 204 responses
Still have the problem in 2.0.3. Experienced with POST request.
I've seen this as well on POST, PUT, and delete requests. The execution dialog (with the Abort button) just stays open indefinitely when the server returns a 204. More annoying than problematic.
RESTClient being a testing tool for many of us should always allow responses without body even if it violates HTTP. spec
204 responses without a body don't violate the spec. RESTCient shouldn't wait for a body when getting a 204.
Wait is there a "rest spec" which says thou must return a response with a 204, or 200 for that matter? Which is when I happen to see this happen.
FWIW I was able to tweak the extension pretty easily to fix this problem. At least for me it was related to the Content-Type being set to application/json but no response-data being returned, which some JSON method doesn't like.
To fix, I tweaked restclient.main.js, and in the displayJson function, wrapped the offending call with a check:
if (reformatted) {
$.JSONView(reformatted, $('#response-body-highlight pre'));
}
Same issue here on 2.0.3. I have a 201 request that has the "Accept: application/json" header set, but which does not return a body, and hangs upon execution. Removing the header solves the problem. This is annoying because you are typically testing this together with many other requests that DO need to return JSON, so you have to change the header settings in the client all the time.