Microflow issue while API call

0
{api}/category/cat 90   -  this is my API endpoint i have the parameter to pass with API it has Space it showing error like com.mendix.modules.microflowengine.MicroflowException: Illegal character in path at index 71: {api}/category/cat 90     at RestModule.EditCategory_Save (CallRest : 'Call REST (PATCH)')     at RestModule.SaveNewCategory (SubMicroflow : 'EditCategory_Save') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:146) Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 71: {api}/category/cat 90     at java.net.URI.create(URI.java:852)     at com.mendix.http.HttpLocation.toUri(HttpLocation.scala:25)     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:40)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) Can someone please help me on this
asked
2 answers
0

For URLs, it is a good idea to use the trim(replaceAll(' ','')) functions to make sure you have no spaces in your string

answered
5

You should properly encode the url. Use

urlEncode

answered