opened
NTTLuke
username_0
- and the result?.Data is null

**Other info**
Using the Vault client with the same user and password , for having the properly token , works fine. 
Looking inside the UI , the secret version is v2 but during the debug the client.Secret seems v1. Is it possible ?

Do you have suggestions ? 
Thank you
Read<T> return warning and null values
issue
created
chrishoffman
username_1
There are different api paths for the v2 api. You need to request your data at ‘secret/data/mongodb’ in kv v2.
comment
closed
chrishoffman
username_1
issue
created
NTTLuke
username_0
Thank you
comment
reopened
chrishoffman
username_1
- and the result?.Data is null

**Other info**

- Using  the Vault client with the same user and password , for having the properly token , works fine. 

- Looking inside the UI , the secret version is v2 but during the debug the client.Secret seems v1. Is it possible ?

Do you have suggestions ? 
Thank you
Read<T> return warning and null values
issue
closed
chrishoffman
username_1
issue
created
chrishoffman
username_1
The data type returned by KVv2 is not `Dictionary<String, String>`, it is `Dictionary<String, Dictionary<String, String>>`.  I created some tests to test KVv2 behavior to show usage.

https://github.com/Chatham/Vault.NET/pull/27
comment
created
apuchkov
username_2
I think it worth adding a sample in a readme to show how to get secrets from kv2.

I just tried to use this library for the first time following the readme and ran into the same two problems:
 - having a path without a "data" in it (StackOverflow helped with that)
 - then getting exception "Unexpected character encountered while parsing value: {. Path 'data.data', line 1, position 120.)" (luckily found this ticket after going through issues one be one)
comment