com.bettercloud.vault.VaultException: java.lang.NullPointerException
at com.bettercloud.vault.api.Auth.loginByAwsIam(Auth.java:913)
...
Caused by: java.lang.NullPointerException: null
at com.bettercloud.vault.rest.Rest.responseBodyBytes(Rest.java:519)
at com.bettercloud.vault.rest.Rest.postOrPutImpl(Rest.java:413)
at com.bettercloud.vault.rest.Rest.post(Rest.java:306)
at com.bettercloud.vault.api.Auth.loginByAwsIam(Auth.java:886)
... 21 common frames omitted
Hello. We are using vault-java-driver 5.1.0.
Sometimes we are seeing this NPE.
In Rest.java at line 519 the inputStream is null.
The null needs to be handled since HttpURLConnection.java can return null.