I'm trying to add a key using the UserService.addKey() method. The method executes OK but no key is added. I debugged this method and concluded that I indeed got a 401 response from the server. This error is however discarded since the addKey method just ignores the returned InputStream.
The callApiPost() will always return an InputStream regardless of success or failure so how is the caller of this method supposed to detect an error?
I'm trying to add a key using the UserService.addKey() method. The method executes OK but no key is added. I debugged this method and concluded that I indeed got a 401 response from the server. This error is however discarded since the addKey method just ignores the returned InputStream.
The callApiPost() will always return an InputStream regardless of success or failure so how is the caller of this method supposed to detect an error?