Problem with REST Step in Flow Designer

Randave Winston
Tera Contributor

Hi. I have an action which has a REST Step that calls to a third-party API. The problem is that these characters %EF%BB%BF are appended to the URL.

For example:

https://ipinfo.io/8.8.8.8%EF%BB%BF/json

8.8.8.8 is an input. Because of the appended characters, this error appeared:

Invalid uri 'https://ipinfo.io/8.8.8.8/json': escaped absolute path not valid

Now, I've already managed to remove the characters from the URL but I need to know what is the cause of this because in other devices, this does not occur. Has anyone encountered this?

 

 

33 REPLIES 33

Can you create a known issue doc and reference a problem # for this issue? 

Scot Eagle
Tera Contributor

I also have the same problem, don't have the option to changes browsers, and am not a scripting guru. Can someone please provide a sample of the script work around to resolve the issue. 

You can set the resource path by toggling scripting on, and then combining the values you need to compose the resource path url. After that, apply javascript replace function by removing any non ascii character. Ugly, but it worked for me.

 

Ex.: 

 

BrunnoSantos_0-1666024425055.png

 

var resource_path = fd_data._1__preprocessing.sitelocation+
        '/_api/Web/lists/GetByTitle('+fd_data.action_inputs.list_name+')/items('+fd_data.action_inputs.list_item_id+')';
return resource_path.replace(/[^\x00-\x7F]/g, "");

 

(I wasn't able to apply a string replace transform function on the data pills, the byte order mark was still there)

 

 

 

Eric Gilmore
Mega Expert

So, how did you remove the characters from the URL?

Three alternatives, as far as I know:

- Downgrade browser version to avoid September update (chromium based browsers)

- Use another browser to build on Flow Designer (Firefox, Safari)

- A "toggle scripting on" approach where you'd place a data pill