rubrik-sdk-for-powershell
rubrik-sdk-for-powershell copied to clipboard
Invoke-RubrikRESTCall throws Internal server error
Current Behavior
Invoke-RubrikRESTCall command fails often with 'Internal Server error'. We are on Rubrik CDM 8.0.3-p3-22786
Expected Behavior
It should have listed all the databases existing on the mentioned server
Steps to Reproduce
$server = <..> $source_inst_id = (Get-RubrikSQLInstance -Hostname $server).ID (Invoke-RubrikRESTCall -Endpoint "mssql/hierarchy/$($source_inst_id)/children" -Method GET).data
Context
No response
Failure Logs
No response
Same issue here after Rubrik code upgrade. I am able to connect to Rubrik API, but then when I run Get-RubrikDatabase i receive:
Invoke-WebRequest : Internal server error ...\Modules\Rubrik\Private\Invoke-RubrikWebRequest.ps1:36 char:23
line 36 looks like this in Invoke-RubrikWebRequest.ps1 file: $result = Invoke-WebRequest -UseBasicParsing -TimeoutSec $rubrikOptions.ModuleOption.DefaultWebRequestTimeOut @PSBoundParameters
seems to me that there were changes made to API and SDK need some modifications too
Syntax is working as expected on my end. Please resubmit if this continues