Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in query at index 30: https://www.omdbapi.com/?t=toy story&apikey=6585022c at java.base/java.net.URI.create(URI.java:903) at br.com.link.screen.match.services.OmdbApiService.main(OmdbApiService.java:28) Caused by: java.net.URISyntaxException: Illegal character in query at index 30: https://www.omdbapi.com/?t=toy story&apikey=6585022c at java.base/java.net.URI$Parser.fail(URI.java:2970) at java.base/java.net.URI$Parser.checkChars(URI.java:3141) at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3229) at java.base/java.net.URI$Parser.parse(URI.java:3171) at java.base/java.net.URI.(URI.java:620) at java.base/java.net.URI.create(URI.java:901) ... 1 more