title: Bad response when writing secret using node-vault
body: <p>I have started a Hashicorp Vault dev server in my local machine:</p>
  
  <pre><code>$ vault server -dev
  </code></pre>
  
  <p>It shows an <code>Unseal Key</code> and a <code>Root Key</code>. Then, I have executed:</p>
  
  <pre><code>$ vault auth enable app-id
  </code></pre>
  
  <p>And I have this code:</p>
  
  <pre><code>const rootKey = //whatever;
  const unsealKey = //whatever;
  
  var options = {
      apiVersion: 'v1',
      endpoint: 'http://127.0.0.1:8200',
      token: rootKey
  };
  
  var vault = require("node-vault")(options);
  vault.unseal({ key: unsealKey })
      .then(() =&gt; {
          vault.write('secret/hello', { value: 'world' })
            .then((res) =&gt; console.log(res))
            .catch((err) =&gt; console.error(err));
      });
  </code></pre>
  
  <p>But I get this error response:</p>
  
  <pre><code>{ 
    statusCode: 404,
    body:
    { 
      request_id: '433b2301-1f65-63d7-f281-cf7f70f20055',
      lease_id: '',
      renewable: false,
      lease_duration: 0,
      data: null,
      wrap_info: null,
      warnings: [Array],
      auth: null 
    }
  }
  </code></pre>
  
  <p>What am I missing?</p>