Tracardi / tracardi

TRACARDI is a new HOME for your customer data. TRACARDI is an Composable API-first solution for any company that need inexpensive CDP to intergrate with.
https://www.tracardi.com
Other
519 stars 95 forks source link

Validation Error on Rest API plugin when resource url is of pattern http://localhost:XXXX/** #702

Open sruthisanthosh1 opened 2 years ago

sruthisanthosh1 commented 2 years ago

Describe the bug

Work flow stop with error caused by validation error. Debug api call fail with response. "1 validation error for InputEdge\nparams\n value is not a valid dict (type=type_error.dict)". The same validation error is thrown even when the flow is run in production

To Reproduce

Steps to reproduce the behavior:

[1] create a resource with url of pattern http://localhost:XXXX/** [2] create a workflow with RemoteAction plugin with the resource created in [1] [3] debug the workflow and the validation error is displayed.

Expected behavior

the workflow should run and should not show any validation messages

Screenshots

Screenshot (1)

Desktop (please complete the following information):

github-actions[bot] commented 2 years ago

Hello. Thank you for contributing to Tracardi. Someone will read you issue report shortly. If you happen to have development questions please join our slack comminity: https://join.slack.com/t/tracardi/shared_invite/zt-1bpf35skl-8Fr5FX5a6cji7tX18JNNDA

atompie commented 2 years ago

@sruthisanthosh1 I will take a look at this. I guess the resource requires the following config:

{
"host": "host-without-port",
"port": "port here"
}

but I may be wrong. I will take a look and get back with the fix if needed.

atompie commented 2 years ago

@DawidekZagajnik Could you check if it works for you. I checked it on my side and I see no issue. Maybe 0.7.2 solved it