StorageGRID PowerShell connection fails with authorize failed via HTTPS protocol 500
Applies to
- NetApp StorageGRID
- StorageGRID PowerShell utility
Issue
Get-Credential, it reports:$Credential = Get-CredentialConnect-SgwServer -Name $Name -Credential $Credential -SkipCertificateCheck
----------------------------------------------------------------------------------
Connect-SgwServer : Login to /authorize failed via HTTPS protocol. Exception message: The remote server returned an error: (500) Internal Server Error. { "message": { "text": "invalid byte sequence in UTF-8" }, "code": 500, "status": "error", "responseTime": "2025-11-27T15:54:05.314Z", "apiVersion": "3.5", "data": { "type": "ArgumentError" }}At line:1 char:1+ Connect-SgwServer -Name $Name -Credential $Credential -SkipCertificat ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-SgwServer
