tracardi icon indicating copy to clipboard operation
tracardi copied to clipboard

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

Open sruthisanthosh1 opened this issue 3 years ago • 3 comments

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):

  • OS: windows 11
  • Browser: Microsoft Edge
  • Version: 105.0.1343.42

sruthisanthosh1 avatar Sep 20 '22 06:09 sruthisanthosh1

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

github-actions[bot] avatar Sep 20 '22 06:09 github-actions[bot]

@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 avatar Sep 29 '22 19:09 atompie

@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

atompie avatar Oct 04 '22 19:10 atompie