rubrikinc / rubrik-sdk-for-powershell

Rubrik Module for PowerShell
https://build.rubrik.com/sdks/powershell/
MIT License
102 stars 87 forks source link

Invoke-RubrikRESTCall throws Internal server error #837

Closed reshbuilds closed 2 months ago

reshbuilds commented 1 year ago

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

baloobaloo33 commented 1 year ago

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

mwpreston commented 2 months ago

Syntax is working as expected on my end. Please resubmit if this continues