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/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!
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
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.
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
Have you considered submitting a support request?
HTH,
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
Great news that you found a fix - thanks too for the update.
Cheers,
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.