When a key vault secret is not found dotenv-azure throws the following error:
Error: Secret not found: SecretName/55f53bc304ad46f29dc059c1bf7468b4
at new RestError (~/jazida-scripts/node_modules/@azure/core-http/lib/restError.ts:18:5)
at ~/jazida-scripts/node_modules/@azure/core-http/lib/policies/deserializationPolicy.ts:117:27
at Promise.propagateAslWrapper (~/jazida-scripts/node_modules/async-listener/index.js:504:23)
at Promise.__asl_wrapper (~/jazida-scripts/node_modules/async-listener/glue.js:188:31)
at proxyWrapper (~/jazida-scripts/node_modules/async-listener/index.js:529:23)
at ~/jazida-scripts/node_modules/async-listener/index.js:541:70
at ~/jazida-scripts/node_modules/async-listener/glue.js:188:31
We should create a KeyVaultError and throw after all key vault requests are completed, so we can inform all the missing secrets once.
When a key vault secret is not found
dotenv-azure
throws the following error:We should create a
KeyVaultError
and throw after all key vault requests are completed, so we can inform all the missing secrets once.