“input buffer too short”

I am so confused.

I am a PowerShell NEWB!

When I run:

Get-Secret “My-Secret-Name” -AsPlainText

I get this error:

Get-Secret: Exception calling “GetResult” with “0” argument(s): “input buffer too short”

…followed by The secret was not found.

Sometimes it works just fine and I get the secret back. Other times error. I am pulling the command up from command history so I know it is the same command every time.

I am on PowerShell 7.4

Appreciate any helpful pointers / explinations. I can’t fathom why this would randomly fail.

Doesn’t seem like anyone knows here, apologies. We also don’t have a ton of information and what troubleshooting has been tried.

You might try creating an issue on github. I don’t have any experience with that module. It’s strange that it sometimes works and sometimes doesn’t, you may try to do some troubleshooting to see if there are any changes when it does and doesn’t work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.