You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CxOverwatch doesn't fully support 9.3 without slight mod
Proposed solution
Change engine's WSDL to include 2 things:
Check for 9.3 and 9.4 (or change code to convert to numeric value and compare if greater than 9.3
Check if the apiUri includes a slash at the end and/or remove the slash that exists infront of swagger/index.html by default.
Sample working code below for one test environment:
Describe the problem
CxOverwatch doesn't fully support 9.3 without slight mod
Proposed solution
Change engine's WSDL to include 2 things:
Check for 9.3 and 9.4 (or change code to convert to numeric value and compare if greater than 9.3
Check if the apiUri includes a slash at the end and/or remove the slash that exists infront of swagger/index.html by default.
Sample working code below for one test environment:
Try to reach the specific engine's WSDL
[Object] GetEngineWSDL ([String] $name, [String]$apiUri) {
$resp = Invoke-WebRequest -UseBasicParsing -Uri "$ {apiUri}swagger/index.html" -TimeoutSec $script:config.monitor.apiResponseTimeoutSeconds
$resp = $ .Exception.Response
[Object] $resp = $null
for ($i = 0; $i -lt $script:config.monitor.retries; $i++) {
try {
if($this.cxVersion.StartsWith("9.3") -or $this.cxVersion.StartsWith("9.4")){
break
} else{
$resp = Invoke-WebRequest -UseBasicParsing -Uri $apiUri -TimeoutSec $script:config.monitor.apiResponseTimeoutSeconds
break
}
} catch {
$this.io.Log("ERROR: Checking engine $name - $apiUri : [$($.Exception.Message)]")
if ($i -lt $script:config.mnitor.retries) {
$this.io.Log("Attempting again...")
}
}
}
return $resp
}
Additional details
N/A
The text was updated successfully, but these errors were encountered: