tracardi
tracardi copied to clipboard
Validation Error on Rest API plugin when resource url is of pattern http://localhost:XXXX/**
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

Desktop (please complete the following information):
- OS: windows 11
- Browser: Microsoft Edge
- Version: 105.0.1343.42
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
@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.
@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