The only reason I can think of is because your code mistakenly applies the URL decoder to the URL string before trying to parse the URL. This would replace the% xx escape sequences with the characters they stand for, and you would end up with illegal characters in the request part in the url.
Send the code that throws the exception.
source
share