java.lang.IllegalArgumentException: `uri` must have scheme "http", "https" or no scheme

GitHub | francisdb | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Invalid request returns 500 instead of 400 in akka http server

    GitHub | 6 months ago | francisdb
    java.lang.IllegalArgumentException: `uri` must have scheme "http", "https" or no scheme
  2. 0

    Invalid request returns 500 instead of 400 in akka http server

    GitHub | 6 months ago | akka-ci
    java.lang.IllegalArgumentException: `uri` must have scheme "http", "https" or no scheme

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      `uri` must have scheme "http", "https" or no scheme

      at akka.http.scaladsl.model.HttpRequest$.verifyUri()
    2. akka.http.scaladsl
      HttpRequest$.apply
      1. akka.http.scaladsl.model.HttpRequest$.verifyUri(HttpMessage.scala:292)
      2. akka.http.scaladsl.model.HttpRequest.<init>(HttpMessage.scala:155)
      3. akka.http.scaladsl.model.HttpRequest$.apply(HttpMessage.scala:302)
      3 frames
    3. akka.http.impl
      HttpServerBluePrint$PrepareRequests$$anon$1.onPush
      1. akka.http.impl.engine.server.HttpServerBluePrint$PrepareRequests$$anon$1.onPush(HttpServerBluePrint.scala:133)
      1 frame
    4. akka.stream.impl
      ActorGraphInterpreter$$anonfun$receive$1.applyOrElse
      1. akka.stream.impl.fusing.GraphInterpreter.processElement$1(GraphInterpreter.scala:587)
      2. akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:598)
      3. akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:539)
      4. akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:472)
      5. akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:424)
      6. akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:604)
      7. akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:619)
      7 frames
    5. Akka Actor
      Actor$class.aroundReceive
      1. akka.actor.Actor$class.aroundReceive(Actor.scala:482)
      1 frame
    6. akka.stream.impl
      ActorGraphInterpreter.aroundReceive
      1. akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:530)
      1 frame
    7. Akka Actor
      Mailbox.exec
      1. akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
      2. akka.actor.ActorCell.invoke(ActorCell.scala:495)
      3. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
      4. akka.dispatch.Mailbox.run(Mailbox.scala:224)
      5. akka.dispatch.Mailbox.exec(Mailbox.scala:234)
      5 frames
    8. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames