I'm trying to call a REST API using Activiti Process Services, and I get an error while testing that says "Response message: error while creating http client: null". I'm using 'www.google.com' as the link just for testing, so I know that's valid. I don't have any headers or body included, and the REST call is the only task in the process. Any ideas?
Thanks for the response, Greg! I tried the steps you outlined, and it still doesn't work. The process gets stuck on the REST Call, and the logs show:
3:35:26,784 [pool-1-thread-1] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context
org.activiti.engine.ActivitiException: error while executing http request: https://jsonplaceholder.typicode.com/posts/1
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to jsonplaceholder.typicode.com:443 [jsonplaceholder.typicode.com/188.8.131.52, jsonplaceholder.typicode.com/184.108.40.206] failed: Connection timed out (Connection timed out)
Caused by: java.net.ConnectException: Connection timed out (Connection timed out)
Is this a server-side issue that I need to fix - some kind of CORS configuration?
Thanks Greg! We've connected Activiti to an Alfresco installation that runs on a different server, and the strange thing is that the API calls work using the built in Alfresco endpoints. I know that we installed the Alfresco server's certificates on the Activiti machine, so maybe it's something to do with that. I'll try and figure out what's going on.