Skip to content

Get-Secret errors on converting JSON string #8

@Windos

Description

@Windos

Hey Chris, good work on this module! You've got a hell of a lot farther than me! I've run into two issues that I'll file separately:

I'm not able to retrieve a secret from my vault (setting it works perfectly, I can see it in the GUI)

Set-Secret -Name 'PS Test' -Secret 'this is text'
Get-Secret -Name 'PS Test'

# also tested
Get-Secret -Name 'PS Test' -AsPlainText
ConvertFrom-Json: C:\Program Files\WindowsPowerShell\Modules\SecretManagement.1Password\0.0.4.1\SecretManagement.1Password.Extension\SecretManagement.1Password.Extension.psm1:63
Line |
  63 |  … ems --categories Login,Password --vault $VaultName | ConvertFrom-Json
     |                                                         ~~~~~~~~~~~~~~~~
     | Cannot convert the JSON string because it contains keys with different casing. Please use the -AsHashTable switch instead. The key
     | that was attempted to be added to the existing key 'B5UserUUID' was 'b5UserUUID'.

Get-Secret: The secret PS Test was not found.

Environment

Get-Module *SecretManagement*
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     0.5.5      preview6   Microsoft.PowerShell.SecretManagem… {Get-Secret, Get-SecretInfo, Get-SecretVault, Register-SecretVault…}
Manifest   0.0.4.1               SecretManagement.1Password
$PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.2.0-preview.1
PSEdition                      Core
GitCommitId                    7.2.0-preview.1
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
op -v
1.8.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions