Questions tagged [akka-http]

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

More Info:

1489 questions
5
votes
1 answer

Gradle Error: Project with path ''could not be found in root project ''

Check out the link for the project structure image. RootModule --- ChildModule1 --- ChildModule2 --- ChildModule3 ChildModule3 depends on ChildModule2 depends on ChildModule1 Each settings.gradle defines include…
Antriksh Parmar
  • 53
  • 1
  • 1
  • 4
5
votes
1 answer

Does Akka HTTP work with Akka Typed?

val behavior: Behavior[Message] = Behaviors.setup { actorContext ⇒ logger.info("starting...") implicit val actorSystem = actorContext.system.asInstanceOf[ActorSystem] implicit val materializer =…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
5
votes
0 answers

Memory Leak in Jackson BufferRecycler

My application is a web socket client that continuously parses JSon using Jackson 2.9.4. I am experiencing a memory leak with SoftReferences in Thread Local not being cleared. I have configured Jackson to NOT use a Thread Local as…
stikkos
  • 1,916
  • 2
  • 19
  • 34
5
votes
1 answer

http => akka stream => http

I'd like to use akka streams in order to pipe some json webservices together. I'd like to know the best approach to make a stream from an http request and stream chunks to another. Is there a way to define such a graph and run it instead of the code…
Bill'o
  • 514
  • 1
  • 5
  • 19
5
votes
1 answer

akka http not handling parameters with dollar signs properly?

I have (OData) query params defined in my route like so: parameters(('$top.as[Int].?, '$skip.as[Int].?)) { (top, skip) => I have the following rejection handler to handle all invalid parameters (handleAll): RejectionHandler.newBuilder() …
Rory
  • 798
  • 2
  • 12
  • 37
5
votes
1 answer

Unable to authenticate OAuth2 with Akka-Http

Hi have a service developed using Akka-Http. I have to add OAuth to it and according to the documentation, I am using authenticateOAuth2 for this. However the code isn't compiling and gives the error as Type mismatch, expected: (L) =>…
deep
  • 1,586
  • 1
  • 18
  • 29
5
votes
2 answers

calling reduce on list of akka http routes yields compilation error (no implicit value for parameter join)

Given the following routes val route1: PathMatcher[Unit] = PathMatcher("app") val route2: PathMatcher1[String] = PathMatchers.Segment val route3: PathMatcher[Unit] = PathMatcher("lastSegment") I can easily define val resultingRoute:…
evandor
  • 799
  • 1
  • 10
  • 23
5
votes
1 answer

Playframework 2.6.x: Why Akka HTTP is default from now?

The question is why Playframework team decided to migrate from Netty to Akka? Is it more efficient in performance meaning?
Dante
  • 451
  • 4
  • 12
5
votes
1 answer

TimeOut for Websocket Connection In Scala

I have a websocket connection from client to api service, and then from API service to other Services. Now by default the connection timeout(i.e when no message/communication is done on web socket connection) is 1 min and I found settings to…
Piyush_Rana
  • 305
  • 3
  • 15
5
votes
1 answer

Akka Http - Host Level Client Side API Source.queue pattern

We started to implement the Source.queue[HttpRequest] pattern mentioned in the docs: http://doc.akka.io/docs/akka-http/current/scala/http/client-side/host-level.html#examples This is the (reduced) example from the documentation val poolClientFlow =…
Muki
  • 3,513
  • 3
  • 27
  • 50
5
votes
1 answer

Using Akka Http and Circe for decoding JSON in Scala

I am trying to create Akka Http REST post endpoint mapping the JSON objects to the case class defined import io.circe.Decoder, io.circe.generic.auto._ case class JobEntity(id: Option[Long] = None, name: String, description: String, json_data…
Vishal
  • 1,442
  • 3
  • 29
  • 48
5
votes
0 answers

Using akka-http with Play 2.5, how do I customize "Illegal request-target"

I am getting < HTTP/1.1 400 Bad Request < Content-Type: text/plain; charset=UTF-8 < Content-Length: 96 Illegal request-target: Invalid input '\', expected pchar, '/', '?' or 'EOI' (line 1, column 17) for URLs containing \, which is ok, I'd like to…
synthetic
  • 798
  • 1
  • 7
  • 20
5
votes
2 answers

Kubernetes - Akka clustering Deployment

We have a docker image and a corresponding yaml file for the deployment using kubernetes. The application we have built is in scala with akka-http. We have used akka-cluster. We have a particular variable(seed-nodes in our case - akka cluster) in…
Nagireddy Hanisha
  • 1,290
  • 4
  • 17
  • 39
5
votes
2 answers

akka-http: send element to akka sink from http route

How can I send elements/messages to an Akka Sink from an Akka HTTP route? My HTTP route still needs to return a normal HTTP response. I imagine this requires a stream branch/junction. The normal HTTP routes are flows from HttpRequest ->…
clay
  • 18,138
  • 28
  • 107
  • 192
5
votes
1 answer

How to customize Akka Http Client execution context

When calling singleRequest, how can one customize the execution context that is used by the connection pool? I took a brief look at the code, and a call to singleRequest results in a message being sent to the PoolMasterActor, which in turn sends a…
EugeneMi
  • 3,475
  • 3
  • 38
  • 57