We are executing a rest call while using the "Run Script" operator. The inline script of the .ps1 uses the powershell cmdlets: invoke-restmethod or invoke-webrequest
However, when executing the operator it returns the following error:
Invoke-RestMethod: Unable to connect to the remote server
+ Invoke-RestMethod -Uri $uri -Credential $cred -Method Get -ContentType ...
Release : 4.3
Component : Process Automation
The problem was solved after adding the URL to the trusted sites. The issue was with trusted zones and worked once the site was added to the trusted site list to execute api calls. This is an operator system / browser setting. Not an ITPAM setting.
If you are experiencing this type of issue than executing the following powershell statements may help you isolate the cause. It is recommended to execute these statements: