Opened 9 years ago

Closed 9 years ago

#714 closed enhancement (fixed)

Get rid of warning messages from HttpMethodBase

Reported by: Nicklas Nordborg Owned by: olle
Priority: minor Milestone: LabEnv v1.3
Component: net.sf.basedb.labenv Keywords:

Description (last modified by Nicklas Nordborg)

Every time a request is made to one of the sensors a warning message is issued in the log

WARN HttpMethodBase:682 - Going to buffer response body of large or unknown size. 
Using getResponseBodyAsStream instead is recommended.

It should be relatively easy to get rid of this warning by using the getResponseBodyAsStream method as recommended.

Change History (2)

comment:1 Changed 9 years ago by Nicklas Nordborg

Description: modified (diff)

comment:2 Changed 9 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed

(In [3019]) Fixes #714: Get rid of warning messages from HttpMethodBase?

Reading from the response stream to a StringBuilder via a BufferedReader. Basically the same thing that happens in the getResponseBodyAsString() but since we *know* that the response is small this is ok.

Note: See TracTickets for help on using tickets.