05-25-2017 10:16 AM
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?
05-26-2017 02:17 PM
05-26-2017 04:40 PM
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/104.31.87.157, jsonplaceholder.typicode.com/104.31.86.157] 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!
05-26-2017 05:17 PM
For some reason your server is not able to make an outbound connection:
Connection timed out (Connection timed out)
Likely tat was the problem with google as well.
Greg
05-30-2017 01:02 PM
05-30-2017 03:32 PM
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.
09-25-2020 03:25 PM
I have got a similar issue. The REST API works from REST Task, but not from the server (called from java class library). jvaidya how did you manage to fix yours
09-30-2020 06:17 AM
Have you considered submitting a support request?
HTH,
09-30-2020 08:06 AM
Hi @EddieMay
Managed to locate the custom task running java code to create a folder in ACS which already exist and hence 409.
Worked fine now with a new folder name.
SS
09-30-2020 08:12 AM
Great news that you found a fix - thanks too for the update.
Cheers,
Explore our Alfresco products with the links below. Use labels to filter content by product module.