Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The response is not valid for errors #5

Open
SrishtiSingh-eu opened this issue Jun 25, 2021 · 0 comments
Open

The response is not valid for errors #5

SrishtiSingh-eu opened this issue Jun 25, 2021 · 0 comments

Comments

@SrishtiSingh-eu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant