Skip to content

Cannot unmarshal into Go struct RekeyAttemptReadProgressResponse #251

@SEANDOUGHTY

Description

@SEANDOUGHTY

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.

  • Vault 1.15.5
  • vault-client-go@v0.4.3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions