rubrik-sdk-for-powershell icon indicating copy to clipboard operation
rubrik-sdk-for-powershell copied to clipboard

Invoke-RubrikRESTCall throws Internal server error

Open reshbuilds opened this issue 1 year ago • 1 comments

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

reshbuilds avatar Aug 10 '23 14:08 reshbuilds

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

baloobaloo33 avatar Aug 21 '23 09:08 baloobaloo33

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

mwpreston avatar Jun 13 '24 15:06 mwpreston