Skip to content

AppRoleReadRoleResponse.SecretIdTtl json unmarshal error #265

@trutled3

Description

@trutled3

Expected Behavior

To read an AppRole using the vault.Auth.AppRoleReadRole function and parse the data.

Current Behavior

When reading an AppRole using the vault.Auth.AppRoleReadRole function it results in a invalid memory address or nil pointer dereference error,

json: cannot unmarshal number into Go struct field AppRoleReadRoleResponse.data.secret_id_ttl of type string

Failure Information

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

Vault binary: v1.16.3
vault-client-go: v0.4.3

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Initialize Vault client as described in the documentation.
  2. Assign the value of resp to a variable of type, schema.AppRoleReadRoleResponse.

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