{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/18479","labels_url":"https://api.github.com/repos/akka/akka/issues/18479/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/18479/comments","events_url":"https://api.github.com/repos/akka/akka/issues/18479/events","html_url":"https://github.com/akka/akka/issues/18479","id":106556009,"number":18479,"title":"Uri parsing error","user":{"login":"RomanIakovlev","id":2363458,"avatar_url":"https://avatars.githubusercontent.com/u/2363458?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanIakovlev","html_url":"https://github.com/RomanIakovlev","followers_url":"https://api.github.com/users/RomanIakovlev/followers","following_url":"https://api.github.com/users/RomanIakovlev/following{/other_user}","gists_url":"https://api.github.com/users/RomanIakovlev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanIakovlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanIakovlev/subscriptions","organizations_url":"https://api.github.com/users/RomanIakovlev/orgs","repos_url":"https://api.github.com/users/RomanIakovlev/repos","events_url":"https://api.github.com/users/RomanIakovlev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanIakovlev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-15T13:26:19Z","updated_at":"2015-09-15T14:45:20Z","closed_at":null,"body":"I see the following exception when creating the `Uri` object:\r\n\r\n    akka.http.scaladsl.model.IllegalUriException: Illegal URI reference: Invalid input '=', expected '+', query-char, '%', '&', '#' or 'EOI' (line 1, column 35): /?EVENT=itemGroup&GROUP=10380?page=2\r\n                                  ^\r\n\tat akka.http.scaladsl.model.IllegalUriException$.apply(ErrorInfo.scala:40) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\tat akka.http.scaladsl.model.Uri$.fail(Uri.scala:748) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\tat akka.http.impl.model.parser.UriParser.fail(UriParser.scala:61) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\tat akka.http.impl.model.parser.UriParser.parseUriReference(UriParser.scala:33) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\tat akka.http.scaladsl.model.Uri$.apply(Uri.scala:204) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\tat akka.http.scaladsl.model.Uri$.apply(Uri.scala:176) ~[com.typesafe.akka.akka-http-core-experimental_2.11-1.0.jar:na]\r\n\r\nThe stack trace is provided from the first entry of Akka library.\r\n\r\nI'm not responsible for producing the uri, `/?EVENT=itemGroup&GROUP=10380?page=2`, but it looks valid to me, if strange.\r\n\r\nAkka version is 2.4-RC1. I tried to search for similar issues, but haven't found any."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/140416968","html_url":"https://github.com/akka/akka/issues/18479#issuecomment-140416968","issue_url":"https://api.github.com/repos/akka/akka/issues/18479","id":140416968,"user":{"login":"2beaucoup","id":243903,"avatar_url":"https://avatars.githubusercontent.com/u/243903?v=3","gravatar_id":"","url":"https://api.github.com/users/2beaucoup","html_url":"https://github.com/2beaucoup","followers_url":"https://api.github.com/users/2beaucoup/followers","following_url":"https://api.github.com/users/2beaucoup/following{/other_user}","gists_url":"https://api.github.com/users/2beaucoup/gists{/gist_id}","starred_url":"https://api.github.com/users/2beaucoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2beaucoup/subscriptions","organizations_url":"https://api.github.com/users/2beaucoup/orgs","repos_url":"https://api.github.com/users/2beaucoup/repos","events_url":"https://api.github.com/users/2beaucoup/events{/privacy}","received_events_url":"https://api.github.com/users/2beaucoup/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T14:45:20Z","updated_at":"2015-09-15T14:45:20Z","body":"In that case you should use\r\n\r\n```scala\r\nnew UriParser(input, uriParsingMode = ParsingMode.RelaxedWithRawQuery)\r\n```\r\n\r\ndirectly. See https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/main/resources/reference.conf#L211-L213."}}