I am trying to migrate over to Katalon 7 from Katalon 6 and I seem to be having issues when the url has a “|” in the URL…such as something like this:
I never had an issue in Katalon 6, but seems like when the URL contains a “|”, and I use the Rest Request from Objects, I get an error like this:
2020-02-16 11:20:15.869 ERROR c.k.k.core.keyword.internal.KeywordMain -
Unable to send request (Root cause: java.lang.IllegalArgumentException: Illegal character in path at index 118:
not sure but try to encode pipe symbol as %7C
I ended up doing with encoding, but this did work ok in 6.3.3 and broke , like other things, in 7.
Similar issue is here:
In older versions of Katalon the response looks like this. Which is the correct expected response.
This is also returned correctly in PostMan.
However in the latest version of Katalon it is returning this…
Especially KS 7.0.6 has a change about encoding query parameters:
Sorry for the late response. Starting from version 7.0.6, we have automatically encoded query parameters (both name and value) before sending request, and that is the cause of your issue.
We will consider creating an option for disabling this auto encoding in upcoming releases.
My issue is different. I originally did not encode and for some reason, Katalon does not know how to automatically encode a “|” character. In my opinion, this is a bug because previously in 6 it accepted it and now it doesn’t accept that character at all and does not try to encode it either.