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

parseResponseData crashes and returns empty object (for 5.1.0) #238

Open
jsay-api opened this issue Feb 8, 2021 · 0 comments
Open

parseResponseData crashes and returns empty object (for 5.1.0) #238

jsay-api opened this issue Feb 8, 2021 · 0 comments

Comments

@jsay-api
Copy link

jsay-api commented Feb 8, 2021

hey guys, I'm using vault-java-driver in scala for v2 reads. While working with version 3.1.0 everything was fine, after switching to 5.1.0, I started getting () as a response with no errors. While debugging, found out that actually the client gets the response, starts to parse it, but crashes here with no exceptions:
File: com/bettercloud/vault-java-driver/5.1.0/vault-java-driver-5.1.0.jar!/com/bettercloud/vault/response/LogicalResponse.class

private void parseResponseData(logicalOperations operation) {
        try {
            ...
            }
           ...
            this.dataObject = jsonObject.get("data").asObject();
            Iterator var4 = this.dataObject.iterator();

The line of iterator is never reached and the object is returned empty, though this.dataObject = jsonObject.get("data").asObject(); works fine. Please advice

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