Hi @Ismail Akrim ,
Thanks for posting query in Microsoft Q&A Platform.
This kind of error usually will come when Issue with URL encoding and decoding for special characters. Kindly try using URL encoding and decoding using replace function as explains in below post and see if that helps?
https://stackoverflow.com/questions/65950642/java-net-urisyntaxexception-illegal-character-in-query-at-index-177
Please let us know how it goes. Thank you.