-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When running the below:
Import-module O:\Powershell\modules\PagerDuty\PagerDuty.psd1
Set-PagerDutyMaintenanceWindow -id PJ1RHHL -StartTime $StartTime -EndTime $EndTime
I am getting the below error:
Exception calling "ApiPut" with "2" argument(s): "Exception calling "ApiCallBase" with "3" argument(s): "The remote server returned an error: (400) Bad Request.""
At O:\Powershell\modules\PagerDuty\MaintenanceWindows\MaintenanceWindows.ps1:157 char:9
-
$Result = $PagerDutyCore.ApiPut($Uri, $Body) -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : ScriptMethodRuntimeException
You cannot call a method on a null-valued expression.
At O:\Powershell\modules\PagerDuty\MaintenanceWindows\MaintenanceWindows.ps1:158 char:9
-
$Result.maintenance_window.pstypenames.Insert(0,'PagerDuty.Ma ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels