vaultSharp error


#1

Hi,

I’m getting this error from vaultsharp
{“errors”:[“no handler for route ‘kv/data/notifications-service/settings’”]}
can anyone help?

I’m using vaultSharp version “0.11.1002” below is my vaultSharp settings:-
“vault”: {
“enabled”: true,
“url”: “http://localhost:8200”,
“key”: “notifications-service/settings”,
“authType”: “token”,
“token”: “tpsy@z09!”,
“username”: “user”,
“password”: “secret”
}

Thanks in advance.


#2

Hi,

I got the same issue recently, if you’re using the latest version of Vault (e.g. via Docker), make sure to enable KeyValue storage (instead of using the default “secrets” enabled by default), and add the settings here - it should help.


#4

thanks problem solved.


#5

Happy to hear that :slight_smile:.


#6

I too am having a similar error when trying to progress with Episode 9.
I get the error while following the steps in the video

Unhandled Exception: DShop.Common.Vault.VaultException: Getting Vault secret for key: ‘discounts-service/settings’ caused an error. {“errors”:[“no handler for route ‘kv/data/discounts-service/settings’”]}

What I tried to do differently after getting the error initially:

  • In the GUI, I Enabled a new engine, selected KV and named the path discounts-service
  • Then I created a new secret and named the path settings

Outcome
Error still persists.

Please what steps am I missing as I assume this is what the answer advised .

Thank you