CODE 400: missing client token

1,156 views
Skip to first unread message

Hemant Gupta

unread,
Jan 4, 2016, 7:11:21 PM1/4/16
to Vault
I am able to successfully initialize vault.
I am now getting the below error when trying to write a secret:

Command used to write secret:
vault write secret/hello value=world

Error received:
Error writing data to secret/hello: Error making API request.

Code: 400. Errors:

* missing client token

Vault Version: Vault v0.4.0

Consul Version: Consul v0.5.2
Consul Protocol: 2 (Understands back to: 1)

jmls

unread,
Jan 5, 2016, 4:07:05 AM1/5/16
to Vault
you need to supply a token - if using the cli, it's set in the env

export VAULT_TOKEN=<token>
Reply all
Reply to author
Forward
0 new messages