Open AleksandrMikoshi opened 2 years ago
You maybe missing quotes around the command. Checking the version of OP doesn't require AuthN.
invoke-1passwordexpression "--version"
Also what version of OP.exe do you have in the local directory with your script(s)? I've just successfully revalidated mine using 1.12.3
The version was updated yesterday. invoke-1passwordexpression "--version" 1.12.4 .\op.exe : Enter the Secret Key for $1PSignInAddress at $ 1PSignInAccount: [ERROR] 2022/01/26 09:06:18 invalid account key format length 0
After updating to 1.12.4 I've been able to reproduce the error you get. What version of PowerShell are you using? And what is the output from this command?
invoke-1passwordexpression "-v"
Hello! I use the 1pwd module to solve my cases. Since yesterday, I began to receive an error - data for connection is not received. When I enter the command "Invoke-1PasswordExpression --version" I get the message "invalid account key format length 0 ", from the error itself it is clear that the account key format is not accepted. I pass the key with the following command" $1PSecretKey = ConvertTo-SecureString 'KEY' -AsPlainText -Force"
When I run "Test-1PasswordCredentials" I get the error "(403) Forbidden: You aren't authorized to access this resource." Through the 1password application login and access are performed correctly.
Could you advise what could be the problem?