rajanadar / VaultSharp

A comprehensive cross-platform .NET Library for HashiCorp's Vault, a secret management tool

Home Page:http://rajanadar.github.io/VaultSharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VaultSharp.V1.SecretsEngines.Database: The JSON value could not be converted to System.String. Path: $.data.default_ttl

DamienDennehy opened this issue · comments

Describe the bug
When calling "await vaultClient.V1.Secrets.Database.ReadRoleAsync("role_name");", a JsonException is thrown.

VaultSharp Version
1.13.0.1

Vault Version
1.13.2

Does this work with Vault CLI?
Yes

Sample Code Snippet
var databaseRole = await vaultClient.V1.Secrets.Database.ReadRoleAsync("role_name");

Exception Details/Stack Trace/Error Message
"System.Text.Json.JsonException: 'The JSON value could not be converted to System.String. Path: $.data.default_ttl | LineNumber: 0 | BytePositionInLine: 373.'"

Any additional info
This seems very similar to #312

hi @DamienDennehy let me have a look this weekend