Error using vault with pure python

Hello everyone, I’m trying to use a vault in cloud to access a website, and I’m having problems. When I use the command secret = Vault().get_secret(“secret”), returns the error: KeyError: ‘Missing required environment variable: RC_API_SECRET_HOST’

Here have the two json files and the secret in cloud
image
image

I don’t know what happen, this is the code to access the vault
image

Are you running it from VSCode with Robocorp Extension’s panel and “Launch Task” button? If you run it with standard python extension then it won’t have the required environment variables.

1 Like

Yes, i’m testing using de execute from vscode. I have to do in another way?
image

2 Likes

Very, very thank you!