Connector issue

Using http connector to call localhost api on 8080 port to read data from local db but getting error.
HTCL-02007 Unable to execute HTTP request” error.
@DanielCesario
@aravindhrs
@shreza
@DanielMeyer

Any update on it…

Hi,

Can you post a simple process model with your failing connector config?

regards

Rob

I am url = http://localhost:8080/tablename/id
It works fine in poatman and i get data from local db based on id and also works fine when used in browser. But when i use it in service task with connector implementation, it throws error. I also used IP address instead localhost but no luck.

Hi,

Are you using the connector configuration in the modeller or have you written code using the connector library? Either way, you need to show us your actual configuration (with sensitive details removed if necessary)…

P.S. Link to docs

If you are using the modeller, even a snippet from the XML view would help…

regards

Rob

Hi,

is the ‘id’ at the end of your URL meant to be a literal ‘id’ or should it be some value?

R

Id is query parameter. Its unique row id from database table.

If id =1, Api returns first row data.

Is there any known issue for localhost api from camunda. It works fine in postman

Hi
There should be no problem accessing local host… Your URL may need to be dynamic if ID is parameterized, hence check that your config is not using a static string. In addition, ensure your service is running, eg different port to camunda container or at least reachable…

regards

Rob

Thanks, I will chk that.

Is there any way to get excel or JSON file data (saved locally) on user task in process.