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

Cannot unmarshal into Go struct RekeyAttemptReadProgressResponse #251

Closed
SEANDOUGHTY opened this issue Feb 14, 2024 · 0 comments · Fixed by hashicorp/vault#25509 · May be fixed by #252
Closed

Cannot unmarshal into Go struct RekeyAttemptReadProgressResponse #251

SEANDOUGHTY opened this issue Feb 14, 2024 · 0 comments · Fixed by hashicorp/vault#25509 · May be fixed by #252

Comments

@SEANDOUGHTY
Copy link

Expected Behavior

The RekeyAttemptReadProgressResponse should be getting unmarshlled into a bool.

Current Behavior

It is attempting to unmarshal into a string and failing.

Failure Information

Please include the version of Vault binary and the version of vault-client-go you're using.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

Run this code:

res, err := r.client.System.RekeyAttemptReadProgress(ctx)

And you will get the following error:

json: cannot unmarshal bool into Go struct field RekeyAttemptReadProgressResponse.started of type string

Additional Information

Additional information including exception details, stack trace, etc.

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