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

Exception when calling Get-SecretStoreConfiguration and Set-Secret #56

Closed
AjayKMehta opened this issue Mar 26, 2021 · 4 comments
Closed

Comments

@AjayKMehta
Copy link

I installed both SecretStore and SecretManagement modules and tried to follow the examples in the blog post announcing the release. However, I get the exceptions shown below:

Screenshot 2021-03-26 103957

PS Version info:

Name                           Value
----                           -----
PSVersion                      7.1.2
PSEdition                      Core
GitCommitId                    7.1.2
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@PaulHigin
Copy link
Contributor

I have not seen this error. I suspect there may be some conflict between previous versions. Make sure you uninstall any previous versions of SecretStore and SecretManagement. Also try unregistering any extension vaults and re-register. Be sure and try with a new instance of PowerShell shell.

If you continue seeing this, examine the error record exception and innerexception that includes stack information.

$err = Get-Error
$err.Exception
$err.Exception.StackTrace
$err.Exception.InnerException
$err.Exception.InnerException.StackStrace

Otherwise, I would need a repro.

@PaulHigin
Copy link
Contributor

Or just run Get-Error and it will dump all error information.
Another thing you can try is to reset the SecretStore. If you used an older version there may be a conflict (although I haven't seen any).
But beware as it erases all of your existing secrets.

Reset-SecretStore

@AjayKMehta
Copy link
Author

Thanks, @PaulHigin. I initially had installed a preview version which I deleted.

Reset-SecretStore resolved the issue.

@JSPATRICK1
Copy link

#95

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

3 participants