databox/databox-java

The response is not valid for errors

SrishtiSingh-eu opened this issue · 0 comments

I am using Java SDK for pushing metrics to the databox. I use the push() method. Although I noticed, even though there are errors in the response let's say "502 bad gateway " "Service Unavailable", the code just logs an INFO and always returns true as a response. I see there is a TODO remark there, and recommended to use the Get or Post method: //TODO: This must be overwritten. No time was scheduled to do this. Sorry. ;( Check 'post' and 'get' methods

But those methods are private. is there any way that I can get the exact response code or response string, returned by the databox instead of always true with INFO log in the console?

Please let us know.