Hi there,
I’m currently working on building a workflow that is supposed to create a ticket in our cloud based ticketing system.
Our servers that are running the workflow engine need a proxy to get to the internet. I have confirmed that I can access the URL with the browser and there is a proxy configured on CommVault → Control panel → Internet Options → HTTP Proxy. Which works since Send Logs is possible.
But when I use the HTTP Client Object to try a POST request I get the following error:
2154 WorkflowManager : starting workflow [REDACTED] with inputs [<inputs><Client_Name>asd</Client_Name><Hostname>asd</Hostname></inputs>]
2156 SetActivityInputs : [Start (Start_1)] starting activity with inputs [<inputs />]
2162 WorkflowStep : [Start (Start_1)] completing activity with status [COMPLETED], outputs [<Start_1><system><startTime>1664788228</startTime><endTime></endTime><status>RUNNING</status><timedOut>false</timedOut></system></Start_1>]
2163 SetActivityInputs : [HttpClient (HttpClient_1)] starting activity with inputs [<inputs><request><url>REDACTED</url><method>POST</method><postType>Raw</postType><postContent>REDACTED</postContent><postContentType>application/json</postContentType><headers><name>Accept</name><value>application/json</value></headers><headers><name>Authorization</name><value>Basic REDACTED:REDACTED</value></headers></request></inputs>]
org.apache.http.conn.HttpHostConnectException: Connect to REDACTED:443 [REDACTED(Hostname)/REDACTED(IP)] failed: Connection timed out: connect
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at commvault.cte.workflow.activities.AbstractHttpClientActivity.executeRequest(Unknown Source)
at commvault.cte.workflow.activities.HttpClientActivity.execute(Unknown Source)
at commvault.cte.workflow.handler.ExecuteActivity.executeHandler(Unknown Source)
at commvault.cte.workflow.executor.StepExecutor.executeStep(Unknown Source)
at commvault.cte.workflow.executor.StepExecutor.execute(Unknown Source)
at commvault.cte.workflow.executor.ContinueExecutor.execute(Unknown Source)
at commvault.cte.workflow.executor.StepExecutor$1.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
... 17 more
2164 ExecuteActivity : [HttpClient (HttpClient_1)] WARNING: execution of activity returned a status of [FAILED]
2164 SocketMessage : [HttpClient (HttpClient_1)] user response time=[21] seconds
DNS works since it states the correct IP in the output.
So my question is, does anyone know if the Workflowengine uses the configured HTTP Proxy? If not, is it possible to force the workflow to use a proxy somehow?
Thank you!
Kind Regards
Jakob