Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blinking input cursor after running read #31

Open
mgbell opened this issue Sep 8, 2023 · 1 comment
Open

Blinking input cursor after running read #31

mgbell opened this issue Sep 8, 2023 · 1 comment

Comments

@mgbell
Copy link

mgbell commented Sep 8, 2023

Hi there,

I'm very likely missing something obvious by staring at this for too long (and I am new to using Vault and AWS), however I've got an issue with using this library I can't figure out. I'm able to successfully connect to Vault and read a secret, however after running my script, the console.log returns the values I need, but I'm then left with a blinking cursor to suggest further input is required. The only way for me to then exit is to hit CTRL + C:


const vaultClient = VaultClient.boot('main', {
    api: { url: 'redacted' },
    auth: {
        type: 'iam',
        config: { role: 'redacted' }
    },
});

vaultClient.read('secret/path').then(result => {
    return result;
});
.catch(e => console.error(e)); 

I've tried using return instead of console.log, but I can't seem to get it working. All I need is to get the value from __data out of the response returned. Any help on this likely very-stupid-on-my-part issue would be much appreciated!
req

@mgbell
Copy link
Author

mgbell commented Sep 25, 2023

I know this isn't a priority issue but any thoughts/input on this when possible would be great, thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant