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

json: cannot unmarshal number into Go struct field AppRoleWriteSecretIdResponse.data.secret_id_ttl of type string #249

Open
chaosicu opened this issue Jan 8, 2024 · 0 comments · May be fixed by #260

Comments

@chaosicu
Copy link

chaosicu commented Jan 8, 2024

Expected Behavior

get a AppRoleWriteSecretIdResponse struct

Current Behavior

get a error

Failure Information

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

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. create role
	_, err = client.Auth.AppRoleWriteRole(ctx, "app", schema.AppRoleWriteRoleRequest{
		TokenPolicies: []string{"default"},
	})
	if err != nil {
		log.Panic("vault create role error", err)
		return
	}
  1. create secret id
	resp, err := client.Auth.AppRoleWriteSecretId(ctx, "app", schema.AppRoleWriteSecretIdRequest{})
	if err != nil {
		log.Panic("vault create secret id error", err)
		return
	}

...

Additional Information

use last version

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

Successfully merging a pull request may close this issue.

1 participant