Open JR-Otava opened 1 week ago
After reproducing the crash can you please provide the output of $error[0].Exception.StackTrace
. This will tell me where in the code the crash is happening
Hi.. Thanks for getting back to me.. This is all I get:
at System.Collections.ArrayList.set_Item(Int32 index, Object value)
at CallSite.Target(Closure , CallSite , Object , Object , Object )
at PRTGCAddCachedSensors(Closure , FunctionContext )
But it might be operator error.. Let me get back to you...
This indicates the bug is in your code, somewhere in your PRTGCAddCachedSensors
function, rather than in PrtgAPI. PrtgAPI does not have a function called PRTGCAddCachedSensors
Consider inspecting $error[0].ScriptStackTrace
after reproducing the error to see exactly where in your script the issue is occurring
Describe the bug
$Objectparent | Get-Sensor -Filter $Local:filter -Recurse:$recurse
2024-09-12 03:48:57Z [Error ] : PRTGCFindSensor: Get-Sensor[] returned XML Exception(PRTG Bug), [
]Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index VERBOSE: Get-Sensor: Synchronously executing request
result using rest tool
Steps to reproduce
What is the output of 'Get-PrtgClient -Diagnostic'?
Additional context
perhaps it does not like '_' ?
Or did our friends at Paessler change something in the search routine ?