node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

Authentication Backends Cannot Create Root Tokens

Open a-cabinti opened this issue 7 years ago • 2 comments

Hi,

I need to get my secret on my separate host vault server setup but after I perform vault.userpassLogin({ username, password }) I got this error.

(node:33152) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: authentication backends cannot create root tokens

a-cabinti avatar Jan 12 '18 06:01 a-cabinti

Hi, that message is being returned from the vault endpoint, so it is not a node-vault issue. The Vault API is returning that error. Your request must be wrong.

By the way, I recommend you add a .catch(console.error) at the end of your promise chain to correctly catch and log the errors (and avoid those nasty UnhandledPromiseRejectionWarning logs).

Good luck with your debugging :)

@kr1sp1n I think you should close this

DaniGuardiola avatar Jan 15 '18 14:01 DaniGuardiola

Ah, this might be related to #66

DaniGuardiola avatar Jan 15 '18 14:01 DaniGuardiola

Stale issue that's [maybe] related to #66; Closing for now

aviadhahami avatar Nov 10 '22 16:11 aviadhahami