ERR_UNESCAPED_CHARACTERS: Request path contains unescaped characters

Hey all

I am trying to run this query HTTP;
https://alsie-api.intelisys.ca/RESTv1/departures/qpwv0GURPrZ50RaspplmYzKzinIEAcYvXDXePG1tWJ8JQ17i0DGZq527¥C7a2RfrLUTt77VPFKF7Zƒ7SCsiRzg==/passengers

And getting this error. It seems like the key contains characters, that Make doesn’t like. I tried it in Postman, where it works.

ERR_UNESCAPED_CHARACTERS: Request path contains unescaped characters

Could anyone kindly point me in the right direction of a fix?

Best regards
Morten

Hey @Morten_Servais
¥" and “ƒ” in your URL are actually the characters that needed to be encoded into their respective HTML URL forms
which means for
¥ - %C2%A5
ƒ -%C6%92

which should make your URL to look like this - https://alsie-api.intelisys.ca/RESTv1/departures/qpwv0GURPrZ50RaspplmYzKzinIEAcYvXDXePG1tWJ8JQ17i0DGZq527¥C7a2RfrLUTt77VPFKF7Zƒ7SCsiRzg==/passengers

their is a problem here
it actually changes the value when you send the message and instead replaces it with the symbols itself
so when you put the link in scenario module, replace the symbols with their code above and it should run

for more encoding references
here - HTML URL Encoding Reference

2 Likes

Hey @ThakurHemansh

Thanks so much, you pointed me in the right direction.

I used it like this;
https://alsie-api.intelisys.ca/RESTv1/departures/{{encodeURL(1.data[].key)}}/passengers

So the encodeURL of the string made it run perfectly.

Best
Morten

3 Likes