I am currently getting an HttpResponseException that only has statusCode. How can I get the full answer?
Here is the code I'm using
restClient = new RESTClient("http://${Server}") try { HttpResponseDecorator resp = restClient.post(path,body,requestContentType) as HttpResponseDecorator return JSONObject.fromObject(resp.getData()).get("topKey",""); } catch (HttpResponseException e) { error(e.toString()) }
And he only outputs this:
[oaf.error] groovyx.net.http.HttpResponseException: Internal Server Error
source share