You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vault returns status 400 with body {"errors":["permission denied"]} if access token is incorrect or has insufficient permissions.
On receiving such status, vault-java-driver throws com.bettercloud.vault.VaultException: Expecting HTTP status 204 or 200, but instead receiving 400.
Which is very confusing, because Vault documentation says that it means 400 - Invalid request, missing or invalid data. See the "validation" section for more details on the error response.
And it doesn't provide any more details.
vault-java-driver makes it hard to debug by not exposing response body.
I think that vault-java-driver should incorporate contents of errors field in exception message.
The text was updated successfully, but these errors were encountered:
I made an identical request using invalid token and received {"errors":["permission denied"]} in REST client, but vault-driver still shows that response body is empty so it is impossible to debug it.
Vault returns status 400 with body
{"errors":["permission denied"]}
if access token is incorrect or has insufficient permissions.On receiving such status, vault-java-driver throws
com.bettercloud.vault.VaultException: Expecting HTTP status 204 or 200, but instead receiving 400
.Which is very confusing, because Vault documentation says that it means
400 - Invalid request, missing or invalid data. See the "validation" section for more details on the error response.
And it doesn't provide any more details.
vault-java-driver makes it hard to debug by not exposing response body.
I think that vault-java-driver should incorporate contents of
errors
field in exception message.The text was updated successfully, but these errors were encountered: