File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/Timer Functions Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,12 @@ function Start-CIPPStatsTimer {
4343 CFZTNA = $RawExt.CFZTNA.Enabled
4444 GitHub = $RawExt.GitHub.Enabled
4545 } | ConvertTo-Json
46-
47- Invoke-RestMethod - Uri ' https://management.cipp.app/api/stats' - Method POST - Body $SendingObject - ContentType ' application/json'
46+ try {
47+ Invoke-RestMethod - Uri ' https://management.cipp.app/api/stats' - Method POST - Body $SendingObject - ContentType ' application/json'
48+ } catch {
49+ $rand = Get-Random - Minimum 0.5 - Maximum 5.5
50+ Start-Sleep - Seconds $rand
51+ Invoke-RestMethod - Uri ' https://management.cipp.app/api/stats' - Method POST - Body $SendingObject - ContentType ' application/json'
52+ }
4853 }
4954}
You can’t perform that action at this time.
0 commit comments